commit:     c61168bfea27afcc8daf85976f67e8a84db3427b
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Jun  3 19:20:52 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Jun  3 19:20:52 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=c61168bf

bin/chmod-lite: fix shebang and fallback python interpreter

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 bin/chmod-lite | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bin/chmod-lite b/bin/chmod-lite
index ffa8d4d23..8c62e2de7 100755
--- a/bin/chmod-lite
+++ b/bin/chmod-lite
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!@PORTAGE_BASH@
 # Copyright 2015 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
@@ -7,4 +7,4 @@ export __PORTAGE_HELPER_CWD=${PWD}
 # Use safe cwd, avoiding unsafe import for bug #469338.
 cd "${PORTAGE_PYM_PATH}" || exit 1
 PYTHONPATH=${PORTAGE_PYTHONPATH:-${PORTAGE_PYM_PATH}} \
-       exec "${PORTAGE_PYTHON:-/usr/bin/python}" 
"$PORTAGE_BIN_PATH/chmod-lite.py" "$@"
+       exec "${PORTAGE_PYTHON:-@PREFIX_PORTAGE_PYTHON@}" 
"$PORTAGE_BIN_PATH/chmod-lite.py" "$@"

Reply via email to