exit if lock file exists

This commit is contained in:
hippoz 2020-12-01 18:36:35 +02:00
parent ee0e1f5f86
commit 6a391efcd3

1
aps.sh
View file

@ -197,6 +197,7 @@ main() {
echo "[E] A lock file already exists." echo "[E] A lock file already exists."
echo " If you're sure no package manager is running," echo " If you're sure no package manager is running,"
echo " remove the file ${AL_LOCK}" echo " remove the file ${AL_LOCK}"
exit 1
fi fi
touch "${AL_LOCK}" touch "${AL_LOCK}"