From 6a391efcd3f68197bbef0516f3b544475ffce25e Mon Sep 17 00:00:00 2001 From: hippoz Date: Tue, 1 Dec 2020 18:36:35 +0200 Subject: [PATCH] exit if lock file exists --- aps.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/aps.sh b/aps.sh index 9c26ae4..008fd62 100644 --- a/aps.sh +++ b/aps.sh @@ -197,6 +197,7 @@ main() { echo "[E] A lock file already exists." echo " If you're sure no package manager is running," echo " remove the file ${AL_LOCK}" + exit 1 fi touch "${AL_LOCK}"