From c728b79958fda5b832aba05cbd853ff2b61710c1 Mon Sep 17 00:00:00 2001 From: George Gayno Date: Tue, 4 Oct 2022 15:03:15 -0500 Subject: [PATCH] Fix bug in "link_fixdirs.sh". Add -L to the copy command. Fixes #700. --- fix/link_fixdirs.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fix/link_fixdirs.sh b/fix/link_fixdirs.sh index a236de8e3..a60ef2019 100755 --- a/fix/link_fixdirs.sh +++ b/fix/link_fixdirs.sh @@ -16,6 +16,8 @@ fi if [ $RUN_ENVIR != emc -a $RUN_ENVIR != nco ]; then set +x echo '***ERROR*** unsupported run environment' + echo ' Must choose either "nco" or "emc".' + exit 1 fi if [ $machine != wcoss2 -a $machine != hera -a $machine != jet -a $machine != orion -a $machine != s4 ]; then @@ -27,7 +29,7 @@ fi LINK="ln -fs" SLINK="ln -fs" -[[ $RUN_ENVIR = nco ]] && LINK="cp -rp" +[[ $RUN_ENVIR = nco ]] && LINK="cp -rpL" pwd=$(pwd -P)