From 9346bf6e15fb70bcb75215f61b743faa1f1d676c Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Wed, 23 Dec 2020 12:13:52 +0100 Subject: [PATCH] shellcheck fixes after sorting notifications menu --- scripts/notifications/sxmo_notificationsmenu.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/notifications/sxmo_notificationsmenu.sh b/scripts/notifications/sxmo_notificationsmenu.sh index c5d0bb4..92fcdbc 100755 --- a/scripts/notifications/sxmo_notificationsmenu.sh +++ b/scripts/notifications/sxmo_notificationsmenu.sh @@ -3,7 +3,8 @@ NOTIFDIR="$XDG_DATA_HOME"/sxmo/notifications notificationmenu() { CHOICES="Close Menu\nClear Notifications" - for NOTIFFILE in $(ls -tr $NOTIFDIR); do + # shellcheck disable=SC2045 + for NOTIFFILE in $(ls -tr "$NOTIFDIR"); do NOTIFMSG="$(tail -n+3 "$NOTIFDIR/$NOTIFFILE" | tr "\n^" " ")" NOTIFHRANDMIN="$(stat --printf %y "$NOTIFDIR/$NOTIFFILE" | grep -oE '[0-9]{2}:[0-9]{2}')" CHOICES="