Use "$@" for expansion calls rather than manually listing argument numbers

master
Miles Alan 4 years ago
parent d4a6bacec0
commit cef4de2af0
  1. 2
      scripts/appscripts/sxmo_record.sh
  2. 2
      scripts/core/sxmo_brightness.sh
  3. 4
      scripts/core/sxmo_gpsutil.sh
  4. 2
      scripts/core/sxmo_lisgdonefingercheck.sh
  5. 2
      scripts/core/sxmo_lisgdstart.sh
  6. 2
      scripts/core/sxmo_timezonechange.sh
  7. 2
      scripts/modem/sxmo_modemcall.sh

@ -98,5 +98,5 @@ recordmenu() {
if [ -z "$1" ]; then if [ -z "$1" ]; then
recordmenu recordmenu
else else
"$1" "$2" "$3" "$@"
fi fi

@ -26,4 +26,4 @@ down() {
setdelta "-${STEP}" setdelta "-${STEP}"
} }
"$1" "$2" "$@"

@ -84,7 +84,7 @@ gpslatlonget() {
echo "$LAT" "$LON" "$ZOOM" echo "$LAT" "$LON" "$ZOOM"
} }
gpslatlonset() { gpslatlonset() {
CORDS="$(echo $@ | tr -d ',°')" CORDS="$(echo "$@" | tr -d ',°')"
LAT="$(echo "$CORDS" | cut -d' ' -f1)" LAT="$(echo "$CORDS" | cut -d' ' -f1)"
LON="$(echo "$CORDS" | cut -d' ' -f2)" LON="$(echo "$CORDS" | cut -d' ' -f2)"
ZOOM="$(echo "$CORDS" | cut -d' ' -f3)" ZOOM="$(echo "$CORDS" | cut -d' ' -f3)"
@ -226,4 +226,4 @@ menumaptype() {
done done
} }
"$1" "$2" "$3" "$4" "$5" "$@"

@ -4,5 +4,5 @@ WMCLASS="$(xprop -id "$ACTIVEWIN" | grep WM_CLASS | cut -d ' ' -f3-)"
# E.g. just a check to ignore 1-finger gestures in foxtrotgps # E.g. just a check to ignore 1-finger gestures in foxtrotgps
if echo "$WMCLASS" | grep -vi foxtrot; then if echo "$WMCLASS" | grep -vi foxtrot; then
$@ "$@"
fi fi

@ -1,7 +1,7 @@
#!/usr/bin/env sh #!/usr/bin/env sh
pkill -9 lisgd pkill -9 lisgd
lisgd $@ \ lisgd "$@" \
-g '1,LR,sxmo_lisgdonefingercheck.sh xdotool key --clearmodifiers Alt+Shift+e' \ -g '1,LR,sxmo_lisgdonefingercheck.sh xdotool key --clearmodifiers Alt+Shift+e' \
-g '1,RL,sxmo_lisgdonefingercheck.sh xdotool key --clearmodifiers Alt+Shift+r' \ -g '1,RL,sxmo_lisgdonefingercheck.sh xdotool key --clearmodifiers Alt+Shift+r' \
-g '1,DLUR,sxmo_lisgdonefingercheck.sh sxmo_vol.sh up' \ -g '1,DLUR,sxmo_lisgdonefingercheck.sh sxmo_vol.sh up' \

@ -19,7 +19,7 @@ menu() {
} }
if [ $# -gt 0 ]; then if [ $# -gt 0 ]; then
"$1" "$2" "$@"
else else
menu menu
fi fi

@ -217,4 +217,4 @@ pickup() {
} }
modem_n || fatalerr "Couldn't determine modem number - is modem online?" modem_n || fatalerr "Couldn't determine modem number - is modem online?"
"$1" "$2" "$@"
Loading…
Cancel
Save