File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ endif
2222# which can lead to errors.
2323if ( $?UVCDAT_SETUP_PATH ) then
2424 if ( ${UVCDAT_SETUP_PATH} == ${install_prefix} ) then
25- echo 'Nothing to do UVCDAT is already setup at '${UVCDAT_SETUP_PATH}
26- exit 1
25+ echo 'Nothing to do since UVCDAT is already setup at '${UVCDAT_SETUP_PATH}
26+ exit 0
2727 else
28- echo 'ERROR : UVCDAT setup was previously sourced at '${UVCDAT_SETUP_PATH}
29- echo 'ERROR : There is no need to run setup_runtime manually anymore.'
30- echo 'ERROR : Open a new shell in order to use a different install location.'
31- exit 1
28+ echo 'INFO : UVCDAT setup was previously sourced at '${UVCDAT_SETUP_PATH}
29+ echo 'INFO : There is no need to run setup_runtime manually anymore.'
30+ echo 'INFO : Open a new shell in order to use a different install location.'
31+ exit 0
3232 endif
3333endif
3434
@@ -92,7 +92,7 @@ setenv UVCDAT_SETUP_PATH ${install_prefix}
9292
9393unset install_prefix
9494
95- echo 'Successfully updated your environment to use UV-CDAT '
95+ echo 'Successfully updated your environment to use UVCDAT '
9696echo '(changes are valid for this session/terminal only)'
9797echo 'Version: '${UVCDAT_PROMPT_STRING}
9898echo 'Location: '${UVCDAT_SETUP_PATH}
Original file line number Diff line number Diff line change @@ -10,15 +10,15 @@ function cleanup {
1010# which can lead to errors.
1111if [ -n " ${UVCDAT_SETUP_PATH} " ] ; then
1212 if [ " ${UVCDAT_SETUP_PATH} " = " ${install_prefix} " ] ; then
13- echo " Nothing to do UVCDAT is already setup at: ${UVCDAT_SETUP_PATH} " 1>&2
13+ echo " Nothing to do since UVCDAT is already setup at: ${UVCDAT_SETUP_PATH} " 1>&2
1414 cleanup
1515 return 0
1616 else
17- echo " ERROR : UVCDAT setup was previously sourced at: ${UVCDAT_SETUP_PATH} " 1>&2
18- echo " ERROR : There is no need to run setup_runtime manually anymore." 1>&2
19- echo " ERROR : Open a new shell in order to use a different install location." 1>&2
17+ echo " INFO : UVCDAT setup was previously sourced at: ${UVCDAT_SETUP_PATH} " 1>&2
18+ echo " INFO : There is no need to run setup_runtime manually anymore." 1>&2
19+ echo " INFO : Open a new shell in order to use a different install location." 1>&2
2020 cleanup
21- return 1
21+ return 0
2222 fi
2323fi
2424
@@ -86,7 +86,7 @@ export PYTHONPATH
8686
8787export UVCDAT_SETUP_PATH=" ${install_prefix} "
8888cleanup
89- echo " Successfully updated your environment to use UV-CDAT " 1>&2
89+ echo " Successfully updated your environment to use UVCDAT " 1>&2
9090echo " (changes are valid for this session/terminal only)" 1>&2
9191echo " Version: ${UVCDAT_PROMPT_STRING} " 1>&2
9292echo " Location: ${UVCDAT_SETUP_PATH} " 1>&2
You can’t perform that action at this time.
0 commit comments