1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-23 02:25:53 +03:00

fix: run-tests.sh: fixed cht.sh.txt path discovery

This commit is contained in:
Igor Chubin 2020-08-06 08:02:27 +02:00
parent ce8484fc2d
commit 9f99bec1f0

View File

@ -10,6 +10,8 @@
# 2) configure CHTSH_URL
# 3) run the script
CHTSH_SCRIPT=$(dirname "$(dirname "$(realpath "$(readlink -f "$0")")")")/share/cht.sh.txt
# work from script's dir
cd "$(dirname "$0")" || exit
@ -33,7 +35,7 @@ TMP2=$(mktemp /tmp/cht.sh.tests-XXXXXXXXXXXXXX)
TMP3=$(mktemp /tmp/cht.sh.tests-XXXXXXXXXXXXXX)
trap 'rm -rf $TMP $TMP2 $TMP3' EXIT
CHTSH_SCRIPT=$(dirname "$(dirname "$(readlink -f "$0")")")/share/cht.sh.txt
echo "Using cht.sh client at $CHTSH_SCRIPT"
export PYTHONIOENCODING=UTF-8