kickoffcfg: former fix locally forgotten

This commit is contained in:
Silvan Calarco 2016-07-01 00:29:59 +02:00
parent 7d4de2c7ec
commit 6de5fc2b9c

View File

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