aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xkud/ci/kud-installer.sh2
-rwxr-xr-xkud/hosting_providers/baremetal/aio.sh2
-rwxr-xr-xkud/hosting_providers/vagrant/installer.sh2
-rwxr-xr-xkud/tests/_functions.sh2
4 files changed, 4 insertions, 4 deletions
diff --git a/kud/ci/kud-installer.sh b/kud/ci/kud-installer.sh
index 9fdf5df6..73c1628b 100755
--- a/kud/ci/kud-installer.sh
+++ b/kud/ci/kud-installer.sh
@@ -8,6 +8,6 @@
set -x -e -o pipefail
-curr_dir=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)
+curr_dir="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"
cd ${curr_dir}/../hosting_providers/baremetal
./aio.sh
diff --git a/kud/hosting_providers/baremetal/aio.sh b/kud/hosting_providers/baremetal/aio.sh
index c9903cd3..c1aac6ac 100755
--- a/kud/hosting_providers/baremetal/aio.sh
+++ b/kud/hosting_providers/baremetal/aio.sh
@@ -12,7 +12,7 @@ set -o errexit
set -o nounset
set -o pipefail
-aio_dir=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)
+aio_dir="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"
cd ${aio_dir}/../vagrant
# For aio inventory by default get ovn central ip from local host default interface.
diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh
index ca14bad7..f93839d2 100755
--- a/kud/hosting_providers/vagrant/installer.sh
+++ b/kud/hosting_providers/vagrant/installer.sh
@@ -12,7 +12,7 @@ set -o errexit
set -o nounset
set -o pipefail
-INSTALLER_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)
+INSTALLER_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"
source ${INSTALLER_DIR}/../../tests/_functions.sh
diff --git a/kud/tests/_functions.sh b/kud/tests/_functions.sh
index 5e6314ce..a885bc50 100755
--- a/kud/tests/_functions.sh
+++ b/kud/tests/_functions.sh
@@ -12,7 +12,7 @@ set -o errexit
set -o nounset
set -o pipefail
-FUNCTIONS_DIR=$(cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd)
+FUNCTIONS_DIR="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"
source /etc/environment