From b10452ecf5b8f2d2c2af3c8b7c4a66ad033ae626 Mon Sep 17 00:00:00 2001 From: Arnie Date: Tue, 9 Jan 2018 15:34:18 +0100 Subject: [PATCH] Fix aws cli exec --- aws-cli/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aws-cli/run.sh b/aws-cli/run.sh index 121f7b5..8ebcb61 100755 --- a/aws-cli/run.sh +++ b/aws-cli/run.sh @@ -183,7 +183,8 @@ exec() { local source_dir="$1" if [[ ${source_dir} = "" ]]; then - __warn "You have not provided a directory, using current path: ${localDir}" + source_dir=$(pwd -P) + __warn "You have not provided a directory, using current path: ${source_dir}" __msg "Continue? [(y)/n]" read CONTINUE if [[ ${CONTINUE} != "" ]] && [[ ${CONTINUE} != "y" ]] && [[ ${CONTINUE} != "Y" ]]; then