change file only if already existing

This commit is contained in:
Mylloon 2021-11-14 22:17:42 +01:00
parent 8a3ecea2a3
commit 0ad78fd38e

View file

@ -20,4 +20,6 @@ sudo make install
cd .. cd ..
rm -rf spotify-adblock rm -rf spotify-adblock
# We replace the Ubuntu desktop shortcut # We replace the Ubuntu desktop shortcut
if [ -f /usr/share/applications/spotify.desktop ] ; then
sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
fi