sidplayall.sh: add quotes in test to avoid syntax err
authorColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Fri, 11 Jan 2013 05:40:11 +0000 (21:40 -0800)
committerColin Patrick Mccabe <cmccabe@alumni.cmu.edu>
Fri, 11 Jan 2013 05:40:11 +0000 (21:40 -0800)
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 <cmccabe@alumni.cmu.edu>

sidplayall.sh

index 09c1488..6eec0fe 100755 (executable)
@@ -25,7 +25,7 @@ done
 
 get_next_action() {
     line="?"
-    while [ $line == "?" ]; do
+    while [ "$line" == "?" ]; do
         read line
         case $line in
             "") next_file=1;;