Skip to content

Commit 5cf4839

Browse files
authored
Minor build script fixes (#97)
* typo fixes * exit code 0 for `--version`
1 parent 2decfca commit 5cf4839

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build_tsmp2.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ if [ -n "${comp_name}" ] && [ -z "${comp_srcname}" ];then
7474
submodule_name=$(echo "models/"${sub_srcname})
7575
fi
7676
if [ "$( ls -A ${cmake_tsmp2_dir}/${submodule_name} | wc -l)" -ne 0 ];then
77-
read -p "submodule ${submodule_name} aleady exists. Do you want to overwrite it? (y/N) " yn
77+
read -p "submodule ${submodule_name} already exists. Do you want to overwrite it? (y/N) " yn
7878
if [ "${yn,}" = "y" ];then
7979
message "Overwrite submodule ${submodule_name}"
8080
git submodule update --init --force -- ${submodule_name}
@@ -103,7 +103,7 @@ while [[ "$#" -gt 0 ]]; do
103103
-h|--help) help_tsmp2;;
104104
-q|--quiet) quiet=y;;
105105
-v|--verbose) verbose_makefile=y;;
106-
--version) echo "$0 version 0.1.0"; exit 1;;
106+
--version) echo "$0 version 0.1.0"; exit 0;;
107107
--icon) icon=y;;
108108
--eclm) eclm=y;;
109109
--parflow) parflow=y parflowGPU=n;;
@@ -197,7 +197,7 @@ fi
197197

198198
# Check if the supplied environment file actually exists.
199199
if [[ ! -f "${env}" ]]; then
200-
message "ERROR: Environment file \"${env}\" not found".
200+
message "ERROR: Environment file \"${env}\" not found."
201201
exit 1
202202
fi
203203

0 commit comments

Comments
 (0)