minor shellcheck fixes after applying latest patches

master
Maarten van Gompel 4 years ago
parent 92561f7d7e
commit b5e5387121
  1. 2
      scripts/core/sxmo_lock.sh
  2. 2
      scripts/core/sxmo_proximitylock.sh
  3. 6
      scripts/modem/sxmo_modemcall.sh

@ -5,7 +5,7 @@
. "$(dirname "$0")/sxmo_common.sh" . "$(dirname "$0")/sxmo_common.sh"
finish() { finish() {
kill $LOCKPID kill "$LOCKPID"
} }
trap 'finish' TERM INT trap 'finish' TERM INT

@ -9,7 +9,7 @@ syncstate() {
} }
finish() { finish() {
kill $(jobs -p) kill "$(jobs -p)"
syncstate syncstate
[ free = "$STATE" ] && [ true = "$WASLOCKED" ] && sxmo_lock.sh & [ free = "$STATE" ] && [ true = "$WASLOCKED" ] && sxmo_lock.sh &
exit 0 exit 0

@ -25,14 +25,14 @@ finish() {
echo "sxmo_modemcall: $1">&2 echo "sxmo_modemcall: $1">&2
notify-send "$1" notify-send "$1"
fi fi
[ -n "$LOCKPID" ] && kill $LOCKPID [ -n "$LOCKPID" ] && kill "$LOCKPID"
pkill -9 dmenu pkill -9 dmenu
exit 1 exit 1
} }
gracefulexit() { gracefulexit() {
kill $MAINPID kill "$MAINPID"
wait $MAINPID wait "$MAINPID"
finish "Call ended" finish "Call ended"
} }

Loading…
Cancel
Save