proper exit code

This commit is contained in:
Ulf Gebhardt 2022-01-16 11:13:56 +01:00
parent 452a283306
commit af09a16670
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9

View File

@ -21,7 +21,8 @@ fi
# lock start # lock start
if [ -f $LOCK_FILE ] ; then if [ -f $LOCK_FILE ] ; then
return "Already building!" 2>/dev/null || exit 1 echo "Already building!"
exit 1
fi fi
touch $LOCK_FILE touch $LOCK_FILE