diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-06-15 21:52:46 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-06-15 22:32:42 -0400 |
commit | 9e4ae57ab160241ab0521177b570096089742780 (patch) | |
tree | fcb71d9ab7ec57a4ba5a3f6acb4e58fb07aaf117 | |
parent | 618711302b7ea29de651c1f771eb3160e236b339 (diff) | |
download | cbt-9e4ae57ab160241ab0521177b570096089742780.tar.gz cbt-9e4ae57ab160241ab0521177b570096089742780.tar.bz2 cbt-9e4ae57ab160241ab0521177b570096089742780.zip |
add nailgun files to array, maybe this is simpler
-rwxr-xr-x | cbt | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -310,6 +310,9 @@ while true; do log "not looping, exiting" "$@" break else + for file in "${NAILGUN_SOURCES[@]}"; do + echo "$file" >> "$CBT_LOOP_FILE" + done files= if [ -f "$CBT_LOOP_FILE" ]; then files=($(cat "$CBT_LOOP_FILE")) @@ -317,8 +320,7 @@ while true; do fi echo "" echo "Watching for file changes... (ctrl+c short press for loop, long press for abort)" - #echo fswatch --one-event "${NAILGUN_SOURCES[@]}" "${files[@]}" - fswatch --one-event "${NAILGUN_SOURCES[@]}" "${files[@]}" + fswatch --one-event "${files[@]}" fi done |