add spotify patch

This commit is contained in:
bytedream 2024-09-21 11:47:01 +02:00
parent c0a0aaa37b
commit 01f3134586
2 changed files with 25 additions and 0 deletions

View File

@ -6,3 +6,7 @@ This repository contains some Linux scripts I am using to simplify some of my wo
- DNS
- [clear-cache.sh](dns/clear-cache.sh) - Clear the systemd DNS cache
- Patches
- [spotify.sh](patches/spotify.sh) - Use [SpotX-Bash](https://github.com/SpotX-Official/SpotX-Bash) to patch a existing spotify installation

21
patches/spotify.sh Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env sh
verify_commands() {
commands=("curl")
for command in "${commands[@]}"; do
which $command &> /dev/null
if [ $? -ne 0 ]; then
echo "command '$command' not found"
exit 1
fi
done
}
main() {
verify_commands
sh <(curl -sSL https://spotx-official.github.io/run.sh)
}
main