Fix sxmo_notificationmonitor.sh to ensure script running doesnt overlap; (kill)
This commit is contained in:
parent
4f118bb767
commit
7559984430
2 changed files with 22 additions and 16 deletions
|
@ -17,7 +17,7 @@ writenotification() {
|
|||
if [ "$NOTIFFILEPATHTOWRITE" = "random" ]; then
|
||||
NOTIFFILEPATHTOWRITE="$NOTIFDIR/$(tr -dc 'a-zA-Z0-9' < /dev/urandom | head -c 10)"
|
||||
fi
|
||||
rm -f "$NOTIFFILEPATHTOWRITE"
|
||||
touch "$NOTIFFILEPATHTOWRITE"
|
||||
printf %b "$ACTION\n$WATCHFILE\n$NOTIFMSG\n" > "$NOTIFFILEPATHTOWRITE"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue