summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtest-keyword.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/test-keyword.sh b/test-keyword.sh
index bdc63c8..86cf65a 100755
--- a/test-keyword.sh
+++ b/test-keyword.sh
@@ -1,7 +1,10 @@
-#!/usr/bin/env
+#!/usr/bin/env bash
EPREFIX=${EPREFIX:=${HOME}/Gentoo}
+echo "See if we have emerge in PATH..."
+type -p emerge || exit 1
+
ack="${EPREFIX}/etc/portage/package.accept_keywords"
sed "/### START keyword for $1/../### END keyword for $1/d" -i ${ack}