Skip to content

Commit

Permalink
tighten allowed python interpreters in python-stripped-env
Browse files Browse the repository at this point in the history
  • Loading branch information
lexming committed Oct 21, 2020
1 parent 5d04d84 commit 7f64734
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/python-stripped-env
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ PYTHON=/usr/bin/python
# check first argument for any known python interpreter
first_arg=${1:-false}
case "$first_arg" in
python*)
python|python[23]|python[23].[0-9]*)
# replace $PYTHON with first argument if it's an available interpreter
if command -v $1 &> /dev/null; then
PYTHON=$(which $1)
Expand Down

0 comments on commit 7f64734

Please sign in to comment.