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"
finish() {
kill $LOCKPID
kill "$LOCKPID"
}
trap 'finish' TERM INT

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

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

Loading…
Cancel
Save