From 610493fc87cc1079b9450c2805d0c932f3c3dab7 Mon Sep 17 00:00:00 2001 From: John T Skarbek Date: Fri, 10 Aug 2018 08:53:02 -0400 Subject: [PATCH] Makes finding the $DIR easier * Introduces a hint of hackiness, but it is cross compat Signed-off-by: John T Skarbek --- scripts/gke_bootstrap_script.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/gke_bootstrap_script.sh b/scripts/gke_bootstrap_script.sh index 1b28742c6a..b22851ae20 100755 --- a/scripts/gke_bootstrap_script.sh +++ b/scripts/gke_bootstrap_script.sh @@ -16,7 +16,7 @@ PREEMPTIBLE=${PREEMPTIBLE-false} EXTRA_CREATE_ARGS=${EXTRA_CREATE_ARGS-""} USE_STATIC_IP=${USE_STATIC_IP-false}; external_ip_name=${CLUSTER_NAME}-external-ip; -DIR=$(dirname "$(readlink -f "$0")") +DIR=$(cd "$(dirname "$0")"; pwd) source $DIR/common.sh; @@ -96,7 +96,7 @@ if [ -z "$1" ]; then echo "You need to pass up or down"; fi -DIR=$(dirname "$(readlink -f "$0")") +DIR=$(cd "$(dirname "$0")"; pwd) case $1 in up) -- GitLab