X-Git-Url: https://jasonwoof.com/gitweb/?p=watch-my-terminal.git;a=blobdiff_plain;f=run.sh;h=205d5fd2a2d913b0aa6e5bf1b60edd271b161130;hp=8c9ce4b035b249bffcfa2e2dcb45e0eec3ef581a;hb=HEAD;hpb=1700d1f6d76490cd696f9072bf28d595a4e484c5 diff --git a/run.sh b/run.sh index 8c9ce4b..205d5fd 100755 --- a/run.sh +++ b/run.sh @@ -1,5 +1,9 @@ #!/bin/bash # run from source directory +if [ -z "$1" -o -z "$2" ]; then + echo "USAGE: $0 \$COLUMNS \$LINES" >&2 + exit 1 +fi -script -f >(coffee server.coffee >log.txt 2>&1) +script -f >(coffee server.coffee "$@" >log.txt 2>&1)