Skip to content

Commit 6ba9fd9

Browse files
committed
update watcher script
Signed-off-by: Ryan1729 <[email protected]>
1 parent 0f654b4 commit 6ba9fd9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

watcher.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ elmLive="/opt/lampp/htdocs/elm-live/bin/elm-live.js"
1616
#watcher="unbuffer node --inspect -- $elmLive ${main}.elm --output=elm.js"
1717

1818
#just run elm-live
19-
watcher="unbuffer $elmLive ${main}.elm --output=elm.js"
19+
watcher="unbuffer $elmLive ${main}.elm --output=elm.js "
2020

2121
# Upon exit, set the terminal title
2222
trap "echo -e \"\e]0;closed\a\"" EXIT
2323

24-
$watcher |
24+
# $@ represents the arguments to the script,
25+
# placing variables net to each other is string concatention
26+
$watcher"$@" |
2527
while read -r line
2628
do
2729
echo "$line"

0 commit comments

Comments
 (0)