diff options
author | Raghuram Subramani <raghus2247@gmail.com> | 2025-06-17 15:39:11 +0530 |
---|---|---|
committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-06-17 15:39:36 +0530 |
commit | e0943aced8105e229a08322ce5b44472c042deee (patch) | |
tree | e5fe9c042610aa0e23351330f8d4fb98665cb74e | |
parent | 3a33da381d8d42e0bbc70d5f0e79e4d086c759f2 (diff) |
(misc): update watch.sh
-rw-r--r-- | msg.c | 1 | ||||
-rwxr-xr-x | watch.sh | 8 |
2 files changed, 7 insertions, 2 deletions
@@ -313,5 +313,6 @@ main(int argc, char **argv) free(base_pre); free(base_post); + return EXIT_SUCCESS; } @@ -1,5 +1,9 @@ #!/usr/bin/env bash -inotifywait -q -m -r -e modify $1 | while read DIRECTORY EVENT FILE; do - rm -rf dist && ./msg +./msg + +inotifywait -q -m -r -e modify $(cat config.h | grep DIRECTORY | cut -d '"' -f 2) | while read; do + rm -rf dist + ./msg + echo $? done |