Loading src/socket.sh +5 −1 Original line number Diff line number Diff line Loading @@ -3,10 +3,14 @@ set -Eeuo pipefail path="/run/shm/msg.html" if [ -f "$path" ] && [ -s "$path" ]; then echo -n "s: " && cat "$path" ;; fi inotifywait -m "$path" | while read -r fp event fn; do case "${event,,}" in "modify" ) echo -n "s: " && cat "$path" ;; "modify"* ) echo -n "s: " && cat "$path" ;; "delete_self" ) echo "c: vnc" ;; esac done Loading
src/socket.sh +5 −1 Original line number Diff line number Diff line Loading @@ -3,10 +3,14 @@ set -Eeuo pipefail path="/run/shm/msg.html" if [ -f "$path" ] && [ -s "$path" ]; then echo -n "s: " && cat "$path" ;; fi inotifywait -m "$path" | while read -r fp event fn; do case "${event,,}" in "modify" ) echo -n "s: " && cat "$path" ;; "modify"* ) echo -n "s: " && cat "$path" ;; "delete_self" ) echo "c: vnc" ;; esac done