give feedback on invalid MSC version and path input

This commit is contained in:
Philip Eisenlohr 2017-02-10 18:32:02 -05:00
parent b37ccdc60f
commit d403f5f346
1 changed files with 2 additions and 0 deletions

View File

@ -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