mirror of
https://github.com/gilbN/theme.park.git
synced 2024-10-02 13:37:21 +02:00
Update run for vuetorrent curl redirect
Missed when reviewing https://github.com/themepark-dev/theme.park/pull/535
This commit is contained in:
parent
89a556cd00
commit
325dbddd75
@ -55,7 +55,7 @@ if [[ -z ${TP_THEME} ]]; then
|
||||
fi
|
||||
RELEASE_FILEPATH='/vuetorrent/release.json'
|
||||
NEEDS_UPDATE=false
|
||||
CURRENT_RELEASE=$(curl -s https://api.github.com/repos/WDaan/VueTorrent/releases/latest | jq -r ".assets[]")
|
||||
CURRENT_RELEASE=$(curl -Ls https://api.github.com/repos/WDaan/VueTorrent/releases/latest | jq -r ".assets[]")
|
||||
|
||||
# ===============================================
|
||||
check_updates() {
|
||||
@ -131,4 +131,4 @@ if ! grep -q "${TP_DOMAIN}/css/base" "${INDEX_FILEPATH}"; then
|
||||
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/base\/vuetorrent\/vuetorrent-base.css'><\/body> /g" "${INDEX_FILEPATH}"
|
||||
sed -i "s/<\/body>/<link rel='stylesheet' href='${TP_SCHEME}:\/\/${TP_DOMAIN}\/css\/${THEME_TYPE}\/${TP_THEME}.css'><\/body> /g" "${INDEX_FILEPATH}"
|
||||
printf 'Stylesheet set to %s on public index.html\n' "${TP_THEME}"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user