From c6a05a9ea41ad608867ce34b8db319f1076c1335 Mon Sep 17 00:00:00 2001 From: aayushrangwala Date: Tue, 10 Nov 2020 15:57:01 +0530 Subject: [PATCH 1/2] added the fix for script for not being able to use in script source path --- deploy/util/deploy-hostpath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/util/deploy-hostpath.sh b/deploy/util/deploy-hostpath.sh index 9272a947b..90e39ae42 100755 --- a/deploy/util/deploy-hostpath.sh +++ b/deploy/util/deploy-hostpath.sh @@ -11,7 +11,7 @@ set -e set -o pipefail -BASE_DIR=$(dirname "$0") +BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" # If set, the following env variables override image registry and/or tag for each of the images. # They are named after the image name, with hyphen replaced by underscore and in upper case. From ddc448186378016a1236c9550a70a713a9b9c1f8 Mon Sep 17 00:00:00 2001 From: aayushrangwala Date: Wed, 11 Nov 2020 18:21:12 +0530 Subject: [PATCH 2/2] removed the output redirection and used -zsh instead of BASH_SOURCE --- deploy/util/deploy-hostpath.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/util/deploy-hostpath.sh b/deploy/util/deploy-hostpath.sh index 90e39ae42..f812590d8 100755 --- a/deploy/util/deploy-hostpath.sh +++ b/deploy/util/deploy-hostpath.sh @@ -11,7 +11,7 @@ set -e set -o pipefail -BASE_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" +BASE_DIR="$( cd "$( dirname "$0" )" && pwd )" # If set, the following env variables override image registry and/or tag for each of the images. # They are named after the image name, with hyphen replaced by underscore and in upper case.