Allow spaces in APP_NAME

This commit is contained in:
Fierelier 2024-02-15 15:25:56 +01:00
parent 763b07f92f
commit f0d822797b
1 changed files with 2 additions and 2 deletions

View File

@ -5,8 +5,8 @@ APP_DIR="$(dirname "$APP_CMD")"
source "$APP_DIR/env"
echo "Acquiring lock ..." >&2
mkdir -p /run/$APP_NAME
exec 100>/run/$APP_NAME/lock
mkdir -p "/run/$APP_NAME"
exec 100>"/run/$APP_NAME/lock"
set +e
while true; do
if flock -e -n 100; then