mirror of
https://github.com/bytedream/scripts.git
synced 2025-05-09 12:15:12 +02:00
add spotify patch
This commit is contained in:
parent
c0a0aaa37b
commit
01f3134586
@ -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
21
patches/spotify.sh
Executable 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user