From 2827ca8d5249dee0f9de4932fe82dd3e1e6504fc Mon Sep 17 00:00:00 2001 From: Hunter Breathat Date: Sat, 21 Nov 2020 10:30:19 -0500 Subject: [PATCH] Add a default for the symlink --- offline_test_git_branch.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/offline_test_git_branch.sh b/offline_test_git_branch.sh index d5b84290eb..829a536e4c 100755 --- a/offline_test_git_branch.sh +++ b/offline_test_git_branch.sh @@ -10,6 +10,8 @@ echo " ================= Cloning..." ISO_DATA_PATH=${1} BRANCH_NAME=${2:-master} +# Provide a default location to bind the ISO_DATA_PATH +ISO_DATA_SYM_LINK_DIR=${3:-iso_data} if [ -z "$1" ] then @@ -27,7 +29,7 @@ git submodule update --init --recursive # create symlink to the iso_data folder. rm -r iso_data -ln -s $ISO_DATA_PATH +ln -s $ISO_DATA_PATH $ISO_DATA_SYM_LINK_DIR mkdir build