From 6de5fc2b9c339584e5b4ff96f861f08d8fe335af Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 1 Jul 2016 00:29:59 +0200 Subject: [PATCH] kickoffcfg: former fix locally forgotten --- bin/kickoffcfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/kickoffcfg b/bin/kickoffcfg index 75e62e2..891f003 100755 --- a/bin/kickoffcfg +++ b/bin/kickoffcfg @@ -28,7 +28,7 @@ if [ "$1" = "--add-favorite" ]; then } elif [ "$1" = "--del-favorite" ]; then # DELETE - MODFAVORITES=`echo "$FAVORITES" | sed "s|$2||" | sed "s| ,||" | sed "s|,,|,|"` + MODFAVORITES=`echo "$FAVORITES" | sed "s|$2||;s|^,||;s|,,|,|"` if [ ! "$MODFAVORITES" ]; then /opt/kde/bin/kwriteconfig --file $CONFDIR/kickoffrc --group Favorites --key FavoriteURLs '' elif [ "$FAVORITES" != "$MODFAVORITES" ]; then