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 $(dirname $(realpath -L $(which spotify)))/Apps/ # absolute path to Spotify
|
||||||
cd ${sPATH}/Apps/
|
|
||||||
|
|
||||||
sudo cp xpui.spa xpui.spa_bak # create a backup, in case of trouble
|
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 zip --update xpui.spa xpui.js
|
||||||
sudo rm xpui.js
|
sudo rm xpui.js
|
||||||
|
|
Reference in a new issue