Commit 6de5fc2b9c339584e5b4ff96f861f08d8fe335af

Authored by Silvan Calarco
1 parent 7d4de2c7ec
Exists in master

kickoffcfg: former fix locally forgotten

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -28,7 +28,7 @@
28 28 }
29 29 elif [ "$1" = "--del-favorite" ]; then
30 30 # DELETE
31   - MODFAVORITES=`echo "$FAVORITES" | sed "s|$2||" | sed "s| ,||" | sed "s|,,|,|"`
  31 + MODFAVORITES=`echo "$FAVORITES" | sed "s|$2||;s|^,||;s|,,|,|"`
32 32 if [ ! "$MODFAVORITES" ]; then
33 33 /opt/kde/bin/kwriteconfig --file $CONFDIR/kickoffrc --group Favorites --key FavoriteURLs ''
34 34 elif [ "$FAVORITES" != "$MODFAVORITES" ]; then