From 06b6462ab54296a71c7d82a81a453fa9e8c96e3a Mon Sep 17 00:00:00 2001 From: sergiotarxz Date: Tue, 8 Feb 2022 21:26:24 +0100 Subject: [PATCH] Adding locking mechanism. --- build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 493138e..1ff6939 100755 --- a/build.sh +++ b/build.sh @@ -2,6 +2,10 @@ source ~/.bashrc cd $(dirname $0) +if [ -f aleta.lock ]; then + echo 'Deploy is running.'; +fi +touch aleta.lock pushd aleta git fetch current_commit=$(git rev-parse HEAD) @@ -21,5 +25,5 @@ if [ ! -e output/aleta.tar.gz ]; then echo "aleta.tar.gz not exists." 1>&2 exit 1 fi - +rm aleta.lock perl create_aleta_release.pl