mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-10-30 01:31:43 +00:00
allow disable of incomplete dir if not set
This commit is contained in:
1 parent
c7de408445
commit
728706b7ae
1 file changed
+7
@@ -19,6 +19,13 @@ CONFIG=$(</share/transmission/settings.json)
|
||||
download_dir=$(bashio::config 'download_dir')
|
||||
incomplete_dir=$(bashio::config 'incomplete_dir')
|
||||
|
||||
if [ ${#incomplete_dir} -ge 2 ]
|
||||
then
|
||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"incomplete-dir-enabled\"=true")
|
||||
else
|
||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"incomplete-dir-enabled\"=false")
|
||||
fi
|
||||
|
||||
# Defaults
|
||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"incomplete-dir\"=\"${incomplete_dir}\"")
|
||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"download-dir\"=\"${download_dir}\"")
|
||||
|
||||
Reference in new issue
Block a user