Merge branch '145-build-system-rewrite' of gitea.uniworx.systems:fraport/fradrive into 145-build-system-rewrite

This commit is contained in:
Sarah Vaupel 2024-10-07 14:41:55 +02:00
commit d720a47425

18
utils/watchrun.sh Executable file
View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
FILENAME=$1
STARTSCRIPT=$2
STOPSCRIPT=$3
touch "$FILENAME"
$STARTSCRIPT &
while [ -e "$FILENAME" ] ; do
inotifywait -e ATTRIB -t 10 "$FILENAME" > /dev/null 2&>/dev/null
done
kill %1
$STOPSCRIPT