mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Update 20-transmission-configuration.sh
This commit is contained in:
@@ -19,14 +19,6 @@ CONFIG=$(</share/transmission/settings.json)
|
|||||||
download_dir=$(bashio::config 'download_dir')
|
download_dir=$(bashio::config 'download_dir')
|
||||||
incomplete_dir=$(bashio::config 'incomplete_dir')
|
incomplete_dir=$(bashio::config 'incomplete_dir')
|
||||||
|
|
||||||
# if incomplete dir > 2, to allow both null and '', set it as existing
|
|
||||||
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
|
# Defaults
|
||||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"incomplete-dir\"=\"${incomplete_dir}\"")
|
CONFIG=$(bashio::jq "${CONFIG}" ".\"incomplete-dir\"=\"${incomplete_dir}\"")
|
||||||
CONFIG=$(bashio::jq "${CONFIG}" ".\"download-dir\"=\"${download_dir}\"")
|
CONFIG=$(bashio::jq "${CONFIG}" ".\"download-dir\"=\"${download_dir}\"")
|
||||||
|
|||||||
Reference in New Issue
Block a user