]> git.ipfire.org Git - people/stevee/network.git/blobdiff - src/functions/functions.modem
network fix parameter passing when using ""
[people/stevee/network.git] / src / functions / functions.modem
index 90def3f354bee10ee3056f0356fa7a491cf8f0eb..a2b01ca50e9318ea4ccfc9c4aea4061bada31847 100644 (file)
@@ -34,10 +34,10 @@ modem_chat() {
        while [ $# -gt 0 ]; do
                case "${1}" in
                        --timeout=*)
-                               timeout=$(cli_get_val ${1})
+                               timeout=$(cli_get_val "${1}")
                                ;;
                        --answer=*)
-                               answer=$(cli_get_val ${1})
+                               answer=$(cli_get_val "${1}")
                                ;;
                        --quiet)
                                quiet="true"
@@ -204,7 +204,7 @@ modem_sim_unlocked() {
 }
 
 modem_sim_locked() {
-       modem_sim_unlocked $@ && return ${EXIT_FALSE} || return ${EXIT_TRUE}
+       modem_sim_unlocked "$@" && return ${EXIT_FALSE} || return ${EXIT_TRUE}
 }
 
 modem_sim_unlock() {