Correct savepath

This commit is contained in:
Alexandre
2022-12-07 22:13:11 +01:00
committed by GitHub
parent 38dc64ba5e
commit c132f50b85

View File

@@ -39,12 +39,12 @@ DOWNLOADS=$(bashio::config 'SavePath')
if bashio::config.has_value 'SavePath'; then
# Replace save path
CURRENTSAVEPATH=$(sed -n '/Downloads\\SavePath/p' qBittorrent.conf)
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
# Replace session save path
CURRENTSAVEPATH=$(sed -n '/Session\\DefaultSavePath/p' qBittorrent.conf)
CURRENTSAVEPATH=$(sed -n '/Session\DefaultSavePath/p' qBittorrent.conf)
sed -i "s|${CURRENTSAVEPATH#*=}|$DOWNLOADS|g" qBittorrent.conf || true
# Info