summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2016-07-22 12:36:52 +0200
committerAleksander Morgado <aleksander@aleksander.es>2016-07-22 12:36:52 +0200
commitbadcf2a4d6e3462143cd555f05dbe2f3723d7ce6 (patch)
tree39e734f9f94e9795ac40746260a2a1e001fa56be
parent6f87e17cd57bd735711349711ccf30b8746c2fcb (diff)
downloadlibmbim-badcf2a4d6e3462143cd555f05dbe2f3723d7ce6.tar.gz
mbim-network: fix bashisms when checking arguments
-rwxr-xr-xutils/mbim-network.in3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/mbim-network.in b/utils/mbim-network.in
index 09f9d03..5fe8af8 100755
--- a/utils/mbim-network.in
+++ b/utils/mbim-network.in
@@ -135,7 +135,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
@@ -146,7 +146,6 @@ COMMAND=$2
STATE_FILE=/tmp/mbim-network-state-`basename $DEVICE`
-
load_profile ()
{
if [ -f "$PROFILE_FILE" ]; then