force write the new js file
This commit is contained in:
parent
f3cf209031
commit
518efc40b0
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue