Quote $@ where needed

master
Miles Alan 4 years ago
parent dfca1ede69
commit 8ee22f3038
  1. 3
      scripts/appscripts/sxmo_timer.sh
  2. 3
      scripts/core/sxmo_dmenu_with_kb.sh
  3. 3
      scripts/modem/sxmo_modemcall.sh

@ -47,5 +47,4 @@ menu() {
st -f Monospace-50 -e "$0" timerrun "$TIMEINPUT"
}
# shellcheck disable=SC2068
if [ $# -gt 0 ]; then $@; else menu; fi
if [ $# -gt 0 ]; then "$@"; else menu; fi

@ -1,7 +1,6 @@
#!/usr/bin/env sh
pidof svkbd-sxmo >&2 || svkbd-sxmo &
# shellcheck disable=SC2068
OUTPUT="$(cat | dmenu $@)"
OUTPUT="$(cat | dmenu "$@")"
pkill svkbd-sxmo >&2
echo "$OUTPUT"

@ -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

Loading…
Cancel
Save