We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f654b4 commit 6ba9fd9Copy full SHA for 6ba9fd9
watcher.sh
@@ -16,12 +16,14 @@ elmLive="/opt/lampp/htdocs/elm-live/bin/elm-live.js"
16
#watcher="unbuffer node --inspect -- $elmLive ${main}.elm --output=elm.js"
17
18
#just run elm-live
19
-watcher="unbuffer $elmLive ${main}.elm --output=elm.js"
+watcher="unbuffer $elmLive ${main}.elm --output=elm.js "
20
21
# Upon exit, set the terminal title
22
trap "echo -e \"\e]0;closed\a\"" EXIT
23
24
-$watcher |
+# $@ represents the arguments to the script,
25
+# placing variables net to each other is string concatention
26
+$watcher"$@" |
27
while read -r line
28
do
29
echo "$line"
0 commit comments