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

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

View file

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

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