improve flock error message

This commit is contained in:
Daniel Micay 2022-05-08 05:44:06 -04:00
parent 50570dc8a1
commit 2120e77103
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ set -o errexit -o nounset -o pipefail
touch lock
exec {fd}< lock
if ! flock -n $fd; then
echo deploy_static already locked >&2
echo already processing/deploying static files >&2
exit 1
fi

View File

@ -11,7 +11,7 @@ else
fi
if ! flock -n $fd; then
echo deploy_static already locked >&2
echo already processing/deploying static files >&2
exit 1
fi