1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-10-02 21:47:12 +02:00

sed body tag

This commit is contained in:
GilbN 2022-10-23 10:27:16 +02:00
parent d926e934ff
commit 7b3bda2292

View File

@ -77,6 +77,8 @@ if [[ ! -d /themepark ]]; then
fi
sed_file(){
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/qbittorrent\/qbittorrent-base.css'><\/body> /g" $1
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" $1
sed -i "s/<noscript>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/qbittorrent\/qbittorrent-base.css'><noscript> /g" $1
sed -i "s/<noscript>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><noscript> /g" $1
printf 'Stylesheet set to %s on %s\n\n' "${TP_THEME}" "$1"