diff options
author | Matthias Braendli <matthias.braendli@u-blox.com> | 2015-01-13 09:23:28 +0100 |
---|---|---|
committer | Matthias Braendli <matthias.braendli@u-blox.com> | 2015-01-13 09:23:28 +0100 |
commit | 3d3382cadcd032d1e58c95ee82262f91424ad98b (patch) | |
tree | 348dcca34791571a99fdf8a7984ed70e4a0a9871 /radio.sh | |
parent | 3f2143ac7ad93e0d0283cd733af1f1061e2867aa (diff) | |
download | dab-scripts-3d3382cadcd032d1e58c95ee82262f91424ad98b.tar.gz dab-scripts-3d3382cadcd032d1e58c95ee82262f91424ad98b.tar.bz2 dab-scripts-3d3382cadcd032d1e58c95ee82262f91424ad98b.zip |
Fix shell script bugs
Diffstat (limited to 'radio.sh')
-rwxr-xr-x | radio.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |