various minor shellcheck fixes

This commit is contained in:
Maarten van Gompel 2021-06-06 15:39:38 +02:00
parent 875e4b6f3a
commit f10d6cddaa
5 changed files with 6 additions and 6 deletions

View file

@ -24,9 +24,9 @@ saveAllEventCounts() {
}
whichWake() {
if [ "$(cat $WAKEUPRTC)" -gt "$(cat $OLD_RTC_WAKECOUNT)" ] ; then
if [ "$(cat "$WAKEUPRTC")" -gt "$(cat "$OLD_RTC_WAKECOUNT")" ] ; then
echo "rtc"
elif [ "$(cat $MODEMUPRTC)" -gt "$(cat $OLD_MODEM_WAKECOUNT)" ] ; then
elif [ "$(cat "$MODEMUPRTC")" -gt "$(cat "$OLD_MODEM_WAKECOUNT")" ] ; then
echo "modem"
else
# button does not have a active count so if it's none of the above, it has to be the button