diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-06-03 21:20:52 +0200 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-06-03 21:20:52 +0200 |
commit | c61168bfea27afcc8daf85976f67e8a84db3427b (patch) | |
tree | c8d413f6470a0393fccfcfbff571f9a3342b9a4d | |
parent | bin/save-ebuild-env: fix shebang (diff) | |
download | portage-c61168bf.tar.gz portage-c61168bf.tar.bz2 portage-c61168bf.zip |
bin/chmod-lite: fix shebang and fallback python interpreter
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-x | bin/chmod-lite | 4 |
1 files 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" "$@" |