X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=categories%2Fedit_categories.sh;h=232499bd4c8d39fc1c6ab581fa4d998cb32a90f1;hp=fe97790135a852feac12b1408800267e22ddd7dc;hb=a6e3da877a73be739ac96b12d9cde2190b24a423;hpb=3a37ee43475797d728772ccb0633eb87979cd218 diff --git a/categories/edit_categories.sh b/categories/edit_categories.sh index fe97790..232499b 100755 --- a/categories/edit_categories.sh +++ b/categories/edit_categories.sh @@ -25,7 +25,7 @@ newcat="$(POST newcat)" if [ "$(POST add)" = "add" ]; then printf %s\\n "$newcat" >>"$catfile" elif [ "$remove" ]; then - sed -Ei '/^'"${remove}"'$/d' "$catfile" + sed -E -i '/^'"${remove}"'$/d' "$catfile" fi REDIRECT "/categories/"