change file only if already existing
This commit is contained in:
parent
8a3ecea2a3
commit
0ad78fd38e
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Reference in a new issue