diff --git a/removeBannerSpotify.sh b/removeBannerSpotify.sh index ac31547..0307604 100644 --- a/removeBannerSpotify.sh +++ b/removeBannerSpotify.sh @@ -1,7 +1,6 @@ -sPATH=$(dirname $(realpath -L $(which spotify))) # absolute path to Spotify -cd ${sPATH}/Apps/ +cd $(dirname $(realpath -L $(which spotify)))/Apps/ # absolute path to Spotify sudo cp xpui.spa xpui.spa_bak # create a backup, in case of trouble -sudo unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js +sudo bash -c "unzip -p xpui.spa xpui.js | sed 's/{adsEnabled:\!0}/{adsEnabled:false}/' > xpui.js" sudo zip --update xpui.spa xpui.js sudo rm xpui.js