unicornafl build script: fix sed call for OpenBSD, use present python

bug fixes:
This commit is contained in:
hexcoder-
2020-05-13 16:39:25 +00:00
parent c4fe6f5277
commit 6fdd6004f2

View File

@ -65,7 +65,7 @@ if [ ! -f "../afl-showmap" ]; then
fi fi
PYTHONBIN=python PYTHONBIN=`command -v python3 || command -v python || echo python`
MAKECMD=make MAKECMD=make
EASY_INSTALL='easy_install' EASY_INSTALL='easy_install'
TARCMD=tar TARCMD=tar
@ -111,7 +111,7 @@ if ! command -v $EASY_INSTALL >/dev/null; then
# work around for installs with executable easy_install # work around for installs with executable easy_install
EASY_INSTALL_FOUND=0 EASY_INSTALL_FOUND=0
MYPYTHONPATH=`python -v </dev/null 2>&1 >/dev/null | sed -n -e '/^# \/.*\/os.py/{ s/.*matches //; s/os.py$//; p}'` MYPYTHONPATH=`${PYTHONBIN} -v </dev/null 2>&1 >/dev/null | sed -n -e '/^# \/.*\/os.py/{ s/.*matches //; s/os.py$//; p;}'`
for PATHCANDIDATE in \ for PATHCANDIDATE in \
"dist-packages/" \ "dist-packages/" \
"site-packages/" "site-packages/"