minor shellcheck fixes after applying latest patches

This commit is contained in:
Maarten van Gompel 2021-04-23 19:23:06 +02:00
parent 92561f7d7e
commit b5e5387121
3 changed files with 5 additions and 5 deletions

View file

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

View file

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

View file

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