Merge branch '145-build-system-rewrite' of gitea.uniworx.systems:fraport/fradrive into 145-build-system-rewrite
This commit is contained in:
commit
d720a47425
18
utils/watchrun.sh
Executable file
18
utils/watchrun.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user