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