Skip to content

Commit b06426a

Browse files
committed
asahi-fwextract: Use /usr/bin/python, forbid environment override
The python version can still be changed from the config file, but not the environment (since some people have some random wrong python there). Signed-off-by: Hector Martin <marcan@marcan.st>
1 parent a1ec8c5 commit b06426a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

asahi-fwextract

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33

44
set -eu
55

6+
unset PYTHON
7+
68
[ -e /etc/default/asahi-fwextract ] && . /etc/default/asahi-fwextract
79

810
: "${ASAHIFW:=}"
911
: "${VENDORFW:=}"
1012
: "${VENDORFWTMP:=/run/.vendorfw-tmp}"
11-
: "${PYTHON:=python3}"
13+
: "${PYTHON:=/usr/bin/python3}"
1214

1315
if [ -e "$(dirname "$0")"/functions.sh ]; then
1416
. "$(dirname "$0")"/functions.sh

0 commit comments

Comments
 (0)