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 ..
rm -rf spotify-adblock
# We replace the Ubuntu desktop shortcut
sudo sed -i "7s#.*#Exec=env LD_PRELOAD=/usr/local/lib/spotify-adblock.so spotify %U#" /usr/share/applications/spotify.desktop
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
fi