rename variable, add shellcheck directive
This commit is contained in:
parent
5e2f1f2656
commit
bebe6ea540
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
# notify if no updates available
|
# notify if no updates available
|
||||||
notifynone=true
|
notify_if_none=true
|
||||||
|
|
Loading…
Reference in New Issue