From d403f5f346f99f766b1f6cf52efa36f0b77e8fc1 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Fri, 10 Feb 2017 18:32:02 -0500 Subject: [PATCH] give feedback on invalid MSC version and path input --- installation/mods_MarcMentat/apply_DAMASK_modifications.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/installation/mods_MarcMentat/apply_DAMASK_modifications.sh b/installation/mods_MarcMentat/apply_DAMASK_modifications.sh index f52b70e36..389b05c9f 100755 --- a/installation/mods_MarcMentat/apply_DAMASK_modifications.sh +++ b/installation/mods_MarcMentat/apply_DAMASK_modifications.sh @@ -25,6 +25,7 @@ do if [ -z "$VERSION" ]; then VERSION=${DEFAULT_VERSION} fi + [[ -d "$SCRIPTLOCATION/$VERSION" ]] || echo -e "$VERSION not supported..!\n" done echo "MSC version: $VERSION" @@ -35,6 +36,7 @@ do if [ -z "$INSTALLDIR" ]; then INSTALLDIR=${DEFAULT_DIR} fi + [[ -d "$INSTALLDIR" ]] || echo -e "$INSTALLDIR not found..!\n" done INSTALLDIR=${INSTALLDIR%/} # remove trailing slash