Correct error in savepath

This commit is contained in:
Alexandre
2022-11-23 05:13:10 +01:00
committed by GitHub
parent 8ea453a591
commit 8e5f5db80a

View File

@@ -41,7 +41,7 @@ if bashio::config.has_value 'SavePath'; then
# Replace save path
CURRENTSAVEPATH=$(sed -n '/Downloads\\SavePath/p' qBittorrent.conf)
sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || \
sed -i "${LINE}a Downloads\\SavePath\\$DOWNLOADS" qBittorrent.conf
sed -i "${LINE}a Downloads\\SavePath\\=$DOWNLOADS" qBittorrent.conf
# Replace session save path
CURRENTSAVEPATH=$(sed -n '/Session\\DefaultSavePath/p' qBittorrent.conf)