diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2016-06-19 14:14:28 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2016-06-30 18:02:46 +0200 |
commit | 71a7191de9ae1f8017f93d9df28556b9ce938947 (patch) | |
tree | a8ebe4ecf402fe151a890b6b2c00fd539c433230 | |
parent | 40347d925055968c239c08d30b3a1c3fc8afc122 (diff) | |
download | libqmi-71a7191de9ae1f8017f93d9df28556b9ce938947.tar.gz |
qmi-network: avoid bashisms when checking arguments
-rwxr-xr-x | utils/qmi-network.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/qmi-network.in b/utils/qmi-network.in index 84118461..c9ac8709 100755 --- a/utils/qmi-network.in +++ b/utils/qmi-network.in @@ -127,7 +127,7 @@ if [ -z "$PROFILE_FILE" ]; then exit 255 fi -if [ $# -ne 2 ] || [[ $1 == --* ]] || [[ $2 == --* ]]; then +if [ $# -ne 2 ] || [ "$1" = '--*' ] || [ "$2" = '--*' ]; then echo "error: missing arguments" 1>&2 print_usage exit 255 |