summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest-keyword.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/test-keyword.sh b/test-keyword.sh
index 762d174..c87d071 100755
--- a/test-keyword.sh
+++ b/test-keyword.sh
@@ -7,7 +7,8 @@ type -p emerge || exit 1
ack="${EPREFIX}/etc/portage/package.accept_keywords"
-sed "/### START keyword for $1/,/### END keyword for $1/d" -i ${ack}
+escaped_package=${1////\\/}
+sed "/### START keyword for ${escaped_package}/,/### END keyword for ${escaped_package}/d" -i ${ack}
echo "### START keyword for $1" >> ${ack}