From 01f313458644032357124536c043707c79206ebe Mon Sep 17 00:00:00 2001 From: bytedream Date: Sat, 21 Sep 2024 11:47:01 +0200 Subject: [PATCH] add spotify patch --- README.md | 4 ++++ patches/spotify.sh | 21 +++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100755 patches/spotify.sh diff --git a/README.md b/README.md index 3ec8202..e7a1d57 100644 --- a/README.md +++ b/README.md @@ -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 + diff --git a/patches/spotify.sh b/patches/spotify.sh new file mode 100755 index 0000000..ddb3926 --- /dev/null +++ b/patches/spotify.sh @@ -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 +