exit if lock file exists
This commit is contained in:
parent
ee0e1f5f86
commit
6a391efcd3
1 changed files with 1 additions and 0 deletions
1
aps.sh
1
aps.sh
|
@ -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}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue