Commit 9c26cec7 authored by Eric D. Schabell's avatar Eric D. Schabell

Added check for running outside of project directory, thanks to @ricardozanini for the fix.

parent 2d741672
......@@ -55,6 +55,15 @@ echo #############################################################
echo.
REM make some checks first before proceeding.
if exist "%SUPPORT_DIR%" (
echo Support dir is presented...
echo.
) else (
echo %SUPPORT_DIR% wasn't found. Please make sure to run this script inside the demo directory.
echo.
GOTO :EOF
)
if exist "%SRC_DIR%\%EAP%" (
echo Product JBoss EAP sources are present...
echo.
......
......@@ -52,6 +52,15 @@ echo "#############################################################"
echo
# make some checks first before proceeding.
if [ -r $SUPPORT_DIR ] || [ -L $SUPPORT_DIR ]; then
echo "Support dir is presented..."
echo
else
echo "$SUPPORT_DIR wasn't found. Please make sure to run this script inside the demo directory."
echo
exit
fi
if [ -r $SRC_DIR/$EAP ] || [ -L $SRC_DIR/$EAP ]; then
echo "Product EAP sources are present..."
echo
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment