From: Colin Patrick Mccabe Date: Fri, 11 Jan 2013 05:40:11 +0000 (-0800) Subject: sidplayall.sh: add quotes in test to avoid syntax err X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6110c295719a4aa2809aa74f5037880a0b1f3db8;p=cmccabe-bin sidplayall.sh: add quotes in test to avoid syntax err Add quotes to avoid the annoying syntax error when the string is empty. This fix is bash-specific, but we're requesting /bin/bash anyway. Signed-off-by: Colin McCabe --- diff --git a/sidplayall.sh b/sidplayall.sh index 09c1488..6eec0fe 100755 --- a/sidplayall.sh +++ b/sidplayall.sh @@ -25,7 +25,7 @@ done get_next_action() { line="?" - while [ $line == "?" ]; do + while [ "$line" == "?" ]; do read line case $line in "") next_file=1;;