X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=BaseTools%2FBinWrappers%2FPosixLike%2Fbuild;h=d8b8b8f14527883111fb6fa443523d39583f7a03;hb=9c2d68c0a29909d23266395fc48d0b81b118e341;hp=76effb6da078ae795b92d73a25ebce8c2fa39cfa;hpb=04c47cd40111f85614ec51f6ba8d4e9a2f0fafde;p=mirror_edk2.git diff --git a/BaseTools/BinWrappers/PosixLike/build b/BaseTools/BinWrappers/PosixLike/build index 76effb6da0..d8b8b8f145 100755 --- a/BaseTools/BinWrappers/PosixLike/build +++ b/BaseTools/BinWrappers/PosixLike/build @@ -1,9 +1,9 @@ #!/usr/bin/env bash #python `dirname $0`/RunToolFromSource.py `basename $0` $* -# If a PYTHON3 command is available, use it in preference to python -if command -v $PYTHON3 >/dev/null 2>&1; then - python_exe=$PYTHON3 +# If a ${PYTHON} command is available, use it in preference to python +if command -v ${PYTHON} >/dev/null 2>&1; then + python_exe=${PYTHON} fi full_cmd=${BASH_SOURCE:-$0} # see http://mywiki.wooledge.org/BashFAQ/028 for a discussion of why $0 is not a good choice here