From a4148c85a567ad74a4ed9ef5f3772f47693153bf Mon Sep 17 00:00:00 2001 From: RandySheriffH <48490400+RandySheriffH@users.noreply.github.com> Date: Tue, 18 Jun 2019 13:28:09 -0700 Subject: [PATCH] call install_onnx.sh with relative path (#1225) * call install_onnx with relative path * use caller path * get abs path of current script * process unicode char * replace script name * add suffix as part of match * match only the end of path --- tools/ci_build/github/linux/docker/scripts/install_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci_build/github/linux/docker/scripts/install_deps.sh b/tools/ci_build/github/linux/docker/scripts/install_deps.sh index 6b72121172..9cfdd6a1bd 100755 --- a/tools/ci_build/github/linux/docker/scripts/install_deps.sh +++ b/tools/ci_build/github/linux/docker/scripts/install_deps.sh @@ -28,7 +28,7 @@ fi if [ "$INSTALLED_PYTHON_VERSION" = "3.4" ];then echo "Python 3.5 and above is needed for running onnx tests!" 1>&2 else - source /tmp/scripts/install_onnx.sh $INSTALLED_PYTHON_VERSION + source ${0/%install_deps\.sh/install_onnx\.sh} $INSTALLED_PYTHON_VERSION fi #The last onnx version will be kept