aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-06-15 21:52:46 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-06-15 22:32:42 -0400
commit9e4ae57ab160241ab0521177b570096089742780 (patch)
treefcb71d9ab7ec57a4ba5a3f6acb4e58fb07aaf117
parent618711302b7ea29de651c1f771eb3160e236b339 (diff)
downloadcbt-9e4ae57ab160241ab0521177b570096089742780.tar.gz
cbt-9e4ae57ab160241ab0521177b570096089742780.tar.bz2
cbt-9e4ae57ab160241ab0521177b570096089742780.zip
add nailgun files to array, maybe this is simpler
-rwxr-xr-xcbt6
1 files changed, 4 insertions, 2 deletions
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