1
0
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:
Anatoli Babenia
2020-07-29 20:12:02 +03:00
parent 40d18da4f7
commit 06d8fa7fbd
+3
View File
@@ -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