aboutsummaryrefslogtreecommitdiffstats
path: root/radio.sh
diff options
context:
space:
mode:
authorMatthias Braendli <matthias.braendli@u-blox.com>2015-01-13 09:23:28 +0100
committerMatthias Braendli <matthias.braendli@u-blox.com>2015-01-13 09:23:28 +0100
commit3d3382cadcd032d1e58c95ee82262f91424ad98b (patch)
tree348dcca34791571a99fdf8a7984ed70e4a0a9871 /radio.sh
parent3f2143ac7ad93e0d0283cd733af1f1061e2867aa (diff)
downloaddab-scripts-3d3382cadcd032d1e58c95ee82262f91424ad98b.tar.gz
dab-scripts-3d3382cadcd032d1e58c95ee82262f91424ad98b.tar.bz2
dab-scripts-3d3382cadcd032d1e58c95ee82262f91424ad98b.zip
Fix shell script bugs
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