force write the new js file

This commit is contained in:
Mylloon 2021-12-23 14:37:42 +01:00
parent f3cf209031
commit 518efc40b0
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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