1
0
mirror of https://github.com/gilbN/theme.park.git synced 2024-07-15 00:57:32 +02:00
theme.park/fetch.sh

23 lines
717 B
Bash
Raw Normal View History

2022-07-10 18:39:49 +02:00
#!/usr/bin/env bash
vuetorrent curl github redirect (#535) * 1.13.8 (#496) * Bad interpreter error associated with the NPM release of 2.9.21 (#486) * Fix Pi-Hole network details table colors (#489) * Grafana 9.5.1 element support (#492) Adding support for only a few elements in latest version of Grafana * Added uptime kuma card css (#494) * Use hashlib instead of git shas * Fix Latest manifest if logic --------- Co-authored-by: goodbyepavlyi 3 <pavlyi.off@gmail.com> Co-authored-by: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Co-authored-by: rg9400 <39887349+rg9400@users.noreply.github.com> Co-authored-by: Henry Whitaker <36062479+henrywhitaker3@users.noreply.github.com> * Set line feed in fetch script * 1.15.1 (#534) * qbittorrent: 💄Fixes for #526 * Unraid: Fix login script github.io URL Unraid: Fix the navbar scroll overflow. * Move from subversion to git for pulling the qbittorrent webui (#530) * Move from subversion to git for pulling the qbittorrent webui * slight verbage changes --------- Co-authored-by: Blake <7227893+nintendo424@users.noreply.github.com> * vuetorrent curl github redirect The curl of the latest vuetorrent repo returns a 301 redirect code and location https://api.github.com/repositories/181508472/releases/latest resulting in a `Cannot iterate over null (null)` when jq filters assets against the output from the original request. --------- Co-authored-by: GilbN <24592972+GilbN@users.noreply.github.com> Co-authored-by: goodbyepavlyi 3 <pavlyi.off@gmail.com> Co-authored-by: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Co-authored-by: rg9400 <39887349+rg9400@users.noreply.github.com> Co-authored-by: Henry Whitaker <36062479+henrywhitaker3@users.noreply.github.com> Co-authored-by: Blake <7227893+nintendo424@users.noreply.github.com>
2024-01-25 21:11:14 +01:00
# Downloads all docker mod scripts
2022-07-10 18:56:58 +02:00
MODS=$(curl https://theme-park.dev/themes.json | jq -r '.["docker-mods"]')
2022-07-10 18:39:49 +02:00
if [[ "$0" == "bash" ]]; then
DIR="/tmp/theme-park-mods"
else
vuetorrent curl github redirect (#535) * 1.13.8 (#496) * Bad interpreter error associated with the NPM release of 2.9.21 (#486) * Fix Pi-Hole network details table colors (#489) * Grafana 9.5.1 element support (#492) Adding support for only a few elements in latest version of Grafana * Added uptime kuma card css (#494) * Use hashlib instead of git shas * Fix Latest manifest if logic --------- Co-authored-by: goodbyepavlyi 3 <pavlyi.off@gmail.com> Co-authored-by: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Co-authored-by: rg9400 <39887349+rg9400@users.noreply.github.com> Co-authored-by: Henry Whitaker <36062479+henrywhitaker3@users.noreply.github.com> * Set line feed in fetch script * 1.15.1 (#534) * qbittorrent: 💄Fixes for #526 * Unraid: Fix login script github.io URL Unraid: Fix the navbar scroll overflow. * Move from subversion to git for pulling the qbittorrent webui (#530) * Move from subversion to git for pulling the qbittorrent webui * slight verbage changes --------- Co-authored-by: Blake <7227893+nintendo424@users.noreply.github.com> * vuetorrent curl github redirect The curl of the latest vuetorrent repo returns a 301 redirect code and location https://api.github.com/repositories/181508472/releases/latest resulting in a `Cannot iterate over null (null)` when jq filters assets against the output from the original request. --------- Co-authored-by: GilbN <24592972+GilbN@users.noreply.github.com> Co-authored-by: goodbyepavlyi 3 <pavlyi.off@gmail.com> Co-authored-by: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Co-authored-by: rg9400 <39887349+rg9400@users.noreply.github.com> Co-authored-by: Henry Whitaker <36062479+henrywhitaker3@users.noreply.github.com> Co-authored-by: Blake <7227893+nintendo424@users.noreply.github.com>
2024-01-25 21:11:14 +01:00
DIR="$0"
2022-07-10 18:39:49 +02:00
fi
mkdir -p "$DIR"
printf "\nSaving mods into $DIR\n\n"
jq -r 'to_entries | map(.key + "|" + (.value | tostring)) | .[]' <<< "$MODS" | \
while IFS='|' read key value; do
vuetorrent curl github redirect (#535) * 1.13.8 (#496) * Bad interpreter error associated with the NPM release of 2.9.21 (#486) * Fix Pi-Hole network details table colors (#489) * Grafana 9.5.1 element support (#492) Adding support for only a few elements in latest version of Grafana * Added uptime kuma card css (#494) * Use hashlib instead of git shas * Fix Latest manifest if logic --------- Co-authored-by: goodbyepavlyi 3 <pavlyi.off@gmail.com> Co-authored-by: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Co-authored-by: rg9400 <39887349+rg9400@users.noreply.github.com> Co-authored-by: Henry Whitaker <36062479+henrywhitaker3@users.noreply.github.com> * Set line feed in fetch script * 1.15.1 (#534) * qbittorrent: 💄Fixes for #526 * Unraid: Fix login script github.io URL Unraid: Fix the navbar scroll overflow. * Move from subversion to git for pulling the qbittorrent webui (#530) * Move from subversion to git for pulling the qbittorrent webui * slight verbage changes --------- Co-authored-by: Blake <7227893+nintendo424@users.noreply.github.com> * vuetorrent curl github redirect The curl of the latest vuetorrent repo returns a 301 redirect code and location https://api.github.com/repositories/181508472/releases/latest resulting in a `Cannot iterate over null (null)` when jq filters assets against the output from the original request. --------- Co-authored-by: GilbN <24592972+GilbN@users.noreply.github.com> Co-authored-by: goodbyepavlyi 3 <pavlyi.off@gmail.com> Co-authored-by: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Co-authored-by: rg9400 <39887349+rg9400@users.noreply.github.com> Co-authored-by: Henry Whitaker <36062479+henrywhitaker3@users.noreply.github.com> Co-authored-by: Blake <7227893+nintendo424@users.noreply.github.com>
2024-01-25 21:11:14 +01:00
download_file="$DIR/98-themepark-$key"
curl "$value" --create-dirs --output "$download_file" --silent
2022-07-10 18:39:49 +02:00
echo "Fetched $key script"
vuetorrent curl github redirect (#535) * 1.13.8 (#496) * Bad interpreter error associated with the NPM release of 2.9.21 (#486) * Fix Pi-Hole network details table colors (#489) * Grafana 9.5.1 element support (#492) Adding support for only a few elements in latest version of Grafana * Added uptime kuma card css (#494) * Use hashlib instead of git shas * Fix Latest manifest if logic --------- Co-authored-by: goodbyepavlyi 3 <pavlyi.off@gmail.com> Co-authored-by: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Co-authored-by: rg9400 <39887349+rg9400@users.noreply.github.com> Co-authored-by: Henry Whitaker <36062479+henrywhitaker3@users.noreply.github.com> * Set line feed in fetch script * 1.15.1 (#534) * qbittorrent: 💄Fixes for #526 * Unraid: Fix login script github.io URL Unraid: Fix the navbar scroll overflow. * Move from subversion to git for pulling the qbittorrent webui (#530) * Move from subversion to git for pulling the qbittorrent webui * slight verbage changes --------- Co-authored-by: Blake <7227893+nintendo424@users.noreply.github.com> * vuetorrent curl github redirect The curl of the latest vuetorrent repo returns a 301 redirect code and location https://api.github.com/repositories/181508472/releases/latest resulting in a `Cannot iterate over null (null)` when jq filters assets against the output from the original request. --------- Co-authored-by: GilbN <24592972+GilbN@users.noreply.github.com> Co-authored-by: goodbyepavlyi 3 <pavlyi.off@gmail.com> Co-authored-by: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Co-authored-by: rg9400 <39887349+rg9400@users.noreply.github.com> Co-authored-by: Henry Whitaker <36062479+henrywhitaker3@users.noreply.github.com> Co-authored-by: Blake <7227893+nintendo424@users.noreply.github.com>
2024-01-25 21:11:14 +01:00
# Convert line endings from CRLF to LF manually
if [[ "$(tail -c2 "$download_file")" == $'\r\n' ]]; then
perl -pi -e 's/\r\n/\n/' "$download_file"
fi
2022-07-10 18:39:49 +02:00
done
vuetorrent curl github redirect (#535) * 1.13.8 (#496) * Bad interpreter error associated with the NPM release of 2.9.21 (#486) * Fix Pi-Hole network details table colors (#489) * Grafana 9.5.1 element support (#492) Adding support for only a few elements in latest version of Grafana * Added uptime kuma card css (#494) * Use hashlib instead of git shas * Fix Latest manifest if logic --------- Co-authored-by: goodbyepavlyi 3 <pavlyi.off@gmail.com> Co-authored-by: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Co-authored-by: rg9400 <39887349+rg9400@users.noreply.github.com> Co-authored-by: Henry Whitaker <36062479+henrywhitaker3@users.noreply.github.com> * Set line feed in fetch script * 1.15.1 (#534) * qbittorrent: 💄Fixes for #526 * Unraid: Fix login script github.io URL Unraid: Fix the navbar scroll overflow. * Move from subversion to git for pulling the qbittorrent webui (#530) * Move from subversion to git for pulling the qbittorrent webui * slight verbage changes --------- Co-authored-by: Blake <7227893+nintendo424@users.noreply.github.com> * vuetorrent curl github redirect The curl of the latest vuetorrent repo returns a 301 redirect code and location https://api.github.com/repositories/181508472/releases/latest resulting in a `Cannot iterate over null (null)` when jq filters assets against the output from the original request. --------- Co-authored-by: GilbN <24592972+GilbN@users.noreply.github.com> Co-authored-by: goodbyepavlyi 3 <pavlyi.off@gmail.com> Co-authored-by: Samuel Bartík <63553146+sambartik@users.noreply.github.com> Co-authored-by: rg9400 <39887349+rg9400@users.noreply.github.com> Co-authored-by: Henry Whitaker <36062479+henrywhitaker3@users.noreply.github.com> Co-authored-by: Blake <7227893+nintendo424@users.noreply.github.com>
2024-01-25 21:11:14 +01:00
chmod -R +x "$DIR"