Merge pull request #593 from muneebmahmed/master

Remove python 2 usage
This commit is contained in:
Kyle Neideck 2022-03-31 15:20:21 +11:00 committed by GitHub
commit f4ea06e3c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -71,7 +71,7 @@ check_dir() {
pushd . > /dev/null
# Normalize the path and follow symlinks.
REAL_PATH=$(python -c "import os,sys; print(os.path.realpath(sys.argv[1]))" "$1")
REAL_PATH=$(cd "$1" && pwd -P)
cd "${REAL_PATH}"
DIR_IS_SAFE=0

View file

@ -519,7 +519,6 @@ log_debug_info() {
uname -mrsv >> ${LOG_FILE} 2>&1
/bin/bash --version >> ${LOG_FILE} 2>&1
/usr/bin/env python --version >> ${LOG_FILE} 2>&1
echo "On git branch: $(git rev-parse --abbrev-ref HEAD 2>&1)" >> ${LOG_FILE}
echo "Most recent commit: $(git rev-parse HEAD 2>&1)" \