diff --git a/build_tsmp2.sh b/build_tsmp2.sh index 7edd729..aaddbcc 100755 --- a/build_tsmp2.sh +++ b/build_tsmp2.sh @@ -74,7 +74,7 @@ if [ -n "${comp_name}" ] && [ -z "${comp_srcname}" ];then submodule_name=$(echo "models/"${sub_srcname}) fi if [ "$( ls -A ${cmake_tsmp2_dir}/${submodule_name} | wc -l)" -ne 0 ];then - read -p "submodule ${submodule_name} aleady exists. Do you want to overwrite it? (y/N) " yn + read -p "submodule ${submodule_name} already exists. Do you want to overwrite it? (y/N) " yn if [ "${yn,}" = "y" ];then message "Overwrite submodule ${submodule_name}" git submodule update --init --force -- ${submodule_name} @@ -103,7 +103,7 @@ while [[ "$#" -gt 0 ]]; do -h|--help) help_tsmp2;; -q|--quiet) quiet=y;; -v|--verbose) verbose_makefile=y;; - --version) echo "$0 version 0.1.0"; exit 1;; + --version) echo "$0 version 0.1.0"; exit 0;; --icon) icon=y;; --eclm) eclm=y;; --parflow) parflow=y;; @@ -197,7 +197,7 @@ fi # Check if the supplied environment file actually exists. if [[ ! -f "${env}" ]]; then - message "ERROR: Environment file \"${env}\" not found". + message "ERROR: Environment file \"${env}\" not found." exit 1 fi