forked from sergiotarxz/AletaReleaser
Adding locking mechanism.
This commit is contained in:
parent
9d0ce43bd1
commit
06b6462ab5
6
build.sh
6
build.sh
|
@ -2,6 +2,10 @@
|
||||||
|
|
||||||
source ~/.bashrc
|
source ~/.bashrc
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
|
if [ -f aleta.lock ]; then
|
||||||
|
echo 'Deploy is running.';
|
||||||
|
fi
|
||||||
|
touch aleta.lock
|
||||||
pushd aleta
|
pushd aleta
|
||||||
git fetch
|
git fetch
|
||||||
current_commit=$(git rev-parse HEAD)
|
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
|
echo "aleta.tar.gz not exists." 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
rm aleta.lock
|
||||||
perl create_aleta_release.pl
|
perl create_aleta_release.pl
|
||||||
|
|
Loading…
Reference in New Issue