From aa6216ca371fef4c4d6cf46228d4a9b2bca47b38 Mon Sep 17 00:00:00 2001 From: Timothy J Warren Date: Wed, 31 Jan 2018 13:56:00 -0500 Subject: [PATCH] Attempt to get the current working directory --- build/docker_install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/docker_install.sh b/build/docker_install.sh index 6b97876..41bd231 100644 --- a/build/docker_install.sh +++ b/build/docker_install.sh @@ -4,7 +4,8 @@ [[ ! -e /.dockerenv ]] && [[ ! -e /.dockerinit ]] && exit 0 # Where am I? -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +a="/$0"; a=${a%/*}; a=${a:-.}; a=${a#/}/; DIR=$(cd $a; pwd) +#DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" set -xe