web_cmd enable debug, fix touch

This commit is contained in:
pedro 2024-03-15 09:23:19 +01:00
parent c6c75d981d
commit 9d036f9ad5
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
set -e set -e
set -u set -u
# DEBUG # DEBUG
#set -x set -x
main() { main() {
cmd="${1}" cmd="${1}"
@ -14,7 +14,7 @@ main() {
content="$(cat "${flock}")" content="$(cat "${flock}")"
echo "web command already requested: ${content}" echo "web command already requested: ${content}"
else else
touch touch "${flock}"
deployment="${deployment:-prod}" deployment="${deployment:-prod}"
echo "requested ${cmd}" echo "requested ${cmd}"
${cmd} & ${cmd} &