From bebe6ea5407054ddfd10bdaa2e4c83423e514443 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 17 Feb 2020 19:08:14 +0000 Subject: [PATCH] rename variable, add shellcheck directive --- notify-updates | 5 +++-- notify-updates.config | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/notify-updates b/notify-updates index 69ff8c2..7b88b02 100755 --- a/notify-updates +++ b/notify-updates @@ -40,14 +40,15 @@ fi # TODO use $XDG_CONFIG_HOME if [ -f "$_config_file" ] ; then + # shellcheck source=notify-updates.config . "$_config_file" else echo "notify-updates: warning - config file not found: $_config_file" fi -if [ "$notifynone" = "true" ] ; then +if [ "$notify_if_none" = "true" ] ; then _notify_none=1 -elif [ "$notifynone" = "false" ] ; then +elif [ "$notify_if_none" = "false" ] ; then _notify_none=0 fi diff --git a/notify-updates.config b/notify-updates.config index 2fc0af9..039a017 100644 --- a/notify-updates.config +++ b/notify-updates.config @@ -1,2 +1,2 @@ # notify if no updates available -notifynone=true +notify_if_none=true