give feedback on invalid MSC version and path input
This commit is contained in:
parent
b37ccdc60f
commit
d403f5f346
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue