@@ -28,7 +28,7 @@ function fire-event {
2828 local -r result=${1}
2929 local message=${2:- }
3030
31- if bashio::var .has_value " ${message} " ; then
31+ if bashio::config .has_value " ${message} " ; then
3232 message=" ,\" message:\" :\" ${message} \" "
3333 fi
3434
@@ -106,19 +106,19 @@ function create-local-backup {
106106 bashio::log.warning " No password set, creating a local backup without password."
107107 local data=" {\" name\" :\" ${BACKUP_NAME} \" }"
108108 fi
109- if bashio::var .has_value " ${ backup_exclude_addons} " || bashio::var .has_value " ${ backup_exclude_folders} " ; then
109+ if bashio::config .has_value " backup_exclude_addons" || bashio::config .has_value " backup_exclude_folders" ; then
110110 bashio::log.info " Creating partial backup: \" ${BACKUP_NAME} \" "
111111
112112 local unformatted_folders=" ${base_folders} "
113113 local unformatted_addons=$( bashio::supervisor.addons)
114114
115- if bashio::var .has_value " ${ backup_exclude_folders} " ; then
115+ if bashio::config .has_value " backup_exclude_folders" ; then
116116 bashio::log.notice " Excluded folder(s):\n${backup_exclude_folders} "
117117 for folder in ${backup_exclude_folders} ; do
118118 unformatted_folders=" ${unformatted_folders[@]/ $folder } "
119119 done
120120 fi
121- if bashio::var .has_value " ${ backup_exclude_addons} " ; then
121+ if bashio::config .has_value " backup_exclude_addons" ; then
122122 bashio::log.notice " Excluded addon(s):\n${backup_exclude_addons} "
123123 for addon in ${backup_exclude_addons} ; do
124124 unformatted_addons=" ${unformatted_addons[@]/ $addon } "
@@ -190,7 +190,7 @@ function rsync-folders {
190190
191191 local -r rsync_exclude=$( bashio::config " rsync_exclude" " " )
192192 echo " ${rsync_exclude} " > /tmp/rsync_exclude.txt
193- if bashio::var .has_value " rsync_exclude" ; then
193+ if bashio::config .has_value " rsync_exclude" ; then
194194 bashio::log.notice " Excluded rsync file patterns:\n${rsync_exclude} "
195195 fi
196196
0 commit comments