aboutsummaryrefslogtreecommitdiffstats
path: root/radio.sh
diff options
context:
space:
mode:
Diffstat (limited to 'radio.sh')
-rwxr-xr-xradio.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/radio.sh b/radio.sh
index b39eb39..b6eb305 100755
--- a/radio.sh
+++ b/radio.sh
@@ -27,7 +27,7 @@ sigint_trap() {
set -e
# check number of arguments
-if [[ "$#" < 1 ]] ; then
+if [[ "$#" -lt 1 ]] ; then
echo "Usage $0 radio-id"
echo "You must specify which radio to start"
exit 1
@@ -35,7 +35,7 @@ fi
RADIO=$1
-if [ ${radios[$RADIO]+_} ] ; then
+if [ "${radios[$RADIO]+_}" ] ; then
COMMAND=${radios[$RADIO]}
trap sigint_trap SIGINT