Quote $@ where needed

This commit is contained in:
Miles Alan 2020-06-27 20:50:06 -05:00
parent dfca1ede69
commit 8ee22f3038
3 changed files with 3 additions and 6 deletions

View file

@ -29,8 +29,7 @@ contacts() {
}
modem_cmd_errcheck() {
# shellcheck disable=SC2068
RES="$(mmcli $@ 2>&1)"
RES="$(mmcli "$@" 2>&1)"
OK="$?"
echo "Command: mmcli $*"
if [ "$OK" != 0 ]; then fatalerr "Problem executing mmcli command!\n$RES"; fi