mirror of
https://github.com/chubin/cheat.sh.git
synced 2026-06-20 13:16:44 +02:00
cd to tests/ dir when runner is executed with relpath
This commit is contained in:
@@ -10,6 +10,9 @@
|
||||
# 2) configure CHTSH_URL
|
||||
# 3) run the script
|
||||
|
||||
# work from script's dir
|
||||
cd "$(dirname "$0")" || exit
|
||||
|
||||
PYTHON="${PYTHON:-../ve/bin/python}"
|
||||
"$PYTHON" --version 2>&1 | grep -q 'Python 2' && python_version=2 || python_version=3
|
||||
|
||||
|
||||
Reference in New Issue
Block a user