aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-06-19 14:14:28 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-06-19 14:14:28 +0200
commit1fabdc9841dbf163935c3702a41ad3020b78146c (patch)
tree6b455458508b6c6521461ee1e5a0ec9f989a7c32 /utils
parent86328ed1cc2e1451c095a3c892b7dfd6d1d474d8 (diff)
downloadexternal_libqmi-1fabdc9841dbf163935c3702a41ad3020b78146c.zip
external_libqmi-1fabdc9841dbf163935c3702a41ad3020b78146c.tar.gz
external_libqmi-1fabdc9841dbf163935c3702a41ad3020b78146c.tar.bz2
qmi-network: avoid bashisms when checking arguments
Diffstat (limited to 'utils')
-rwxr-xr-xutils/qmi-network.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/qmi-network.in b/utils/qmi-network.in
index 8411846..c9ac870 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