rename variable, add shellcheck directive

This commit is contained in:
ray 2020-02-17 19:08:14 +00:00
parent 5e2f1f2656
commit bebe6ea540
2 changed files with 4 additions and 3 deletions

View File

@ -40,14 +40,15 @@ fi
# TODO use $XDG_CONFIG_HOME # TODO use $XDG_CONFIG_HOME
if [ -f "$_config_file" ] ; then if [ -f "$_config_file" ] ; then
# shellcheck source=notify-updates.config
. "$_config_file" . "$_config_file"
else else
echo "notify-updates: warning - config file not found: $_config_file" echo "notify-updates: warning - config file not found: $_config_file"
fi fi
if [ "$notifynone" = "true" ] ; then if [ "$notify_if_none" = "true" ] ; then
_notify_none=1 _notify_none=1
elif [ "$notifynone" = "false" ] ; then elif [ "$notify_if_none" = "false" ] ; then
_notify_none=0 _notify_none=0
fi fi

View File

@ -1,2 +1,2 @@
# notify if no updates available # notify if no updates available
notifynone=true notify_if_none=true