install_hooks: fix variable name for PORTAGE_CONFIGROOT
authorFabian Groffen <grobian@gentoo.org>
Fri, 23 Sep 2011 18:35:29 +0000 (20:35 +0200)
committerFabian Groffen <grobian@gentoo.org>
Fri, 23 Sep 2011 18:35:29 +0000 (20:35 +0200)
in addition, omit the leading slash, since PORTAGE_CONFIGROOT contains a
trailing slash

bin/misc-functions.sh

index a54ce2b793e50fc3dc9f63d0037d5a1960b97a4d..882d17165ad65e9359a03ba9339ebdc53193efca 100755 (executable)
@@ -986,7 +986,7 @@ success_hooks() {
 }
 
 install_hooks() {
-       local hooks_dir="${PORTAGE_CONFIG_ROOT}/etc/portage/hooks/install"
+       local hooks_dir="${PORTAGE_CONFIGROOT}etc/portage/hooks/install"
        local fp
        local ret=0
        shopt -s nullglob