From 9e4ae57ab160241ab0521177b570096089742780 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Thu, 15 Jun 2017 21:52:46 -0400 Subject: add nailgun files to array, maybe this is simpler --- cbt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cbt') diff --git a/cbt b/cbt index bc369de..0a5d4f0 100755 --- a/cbt +++ b/cbt @@ -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 -- cgit v1.2.3