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 if [ -z "$VERSION" ]; then
VERSION=${DEFAULT_VERSION} VERSION=${DEFAULT_VERSION}
fi fi
[[ -d "$SCRIPTLOCATION/$VERSION" ]] || echo -e "$VERSION not supported..!\n"
done done
echo "MSC version: $VERSION" echo "MSC version: $VERSION"
@ -35,6 +36,7 @@ do
if [ -z "$INSTALLDIR" ]; then if [ -z "$INSTALLDIR" ]; then
INSTALLDIR=${DEFAULT_DIR} INSTALLDIR=${DEFAULT_DIR}
fi fi
[[ -d "$INSTALLDIR" ]] || echo -e "$INSTALLDIR not found..!\n"
done done
INSTALLDIR=${INSTALLDIR%/} # remove trailing slash INSTALLDIR=${INSTALLDIR%/} # remove trailing slash