fix the windows scripts

This commit is contained in:
Vishwas Shashidhar 2019-08-28 20:00:29 +05:30
parent 4fe14351aa
commit c32f16aef4
2 changed files with 10 additions and 10 deletions

View File

@ -13,25 +13,25 @@ set PATH=%PATH%;C:\Program Files (x86)\GnuWin32\bin
echo %PATH% echo %PATH%
WHERE git WHERE git
if (%ERRORLEVEL% > 0) then ( if %ERRORLEVEL% NEQ 0 (
echo "GIT does not exist. Please set it up before running this script." echo "GIT does not exist. Please set it up before running this script."
EXIT /B 1 EXIT /B 1
) )
WHERE node WHERE node
if (%ERRORLEVEL% > 0) then ( if %ERRORLEVEL% NEQ 0 (
echo "NODE does not exist. Please set it up before running this script." echo "NODE does not exist. Please set it up before running this script."
EXIT /B 1 EXIT /B 1
) )
WHERE npm WHERE npm
if (%ERRORLEVEL% > 0) then ( if %ERRORLEVEL% NEQ 0 (
echo "NPM does not exist. Please set it up before running this script." echo "NPM does not exist. Please set it up before running this script."
EXIT /B 1 EXIT /B 1
) )
WHERE gulp WHERE gulp
if (%ERRORLEVEL% > 0) then ( if %ERRORLEVEL% NEQ 0 (
echo "GULP does not exist. Please set it up before running this script." echo "GULP does not exist. Please set it up before running this script."
EXIT /B 1 EXIT /B 1
) )
@ -49,7 +49,7 @@ call npm install
call npm i -g gulp-cli call npm i -g gulp-cli
:: Set expiry if required :: Set expiry if required
IF ("%EXPIRY_PERIOD%"=="") then ( IF "%EXPIRY_PERIOD%"=="" (
echo "Not setting expiry for the build!" echo "Not setting expiry for the build!"
) else ( ) else (
echo "Setting expiry to days: %EXPIRY_PERIOD%" echo "Setting expiry to days: %EXPIRY_PERIOD%"

View File

@ -13,25 +13,25 @@ set PATH=%PATH%;C:\Program Files (x86)\GnuWin32\bin
echo %PATH% echo %PATH%
WHERE git WHERE git
if (%ERRORLEVEL% > 0) then ( if %ERRORLEVEL% NEQ 0 (
echo "GIT does not exist. Please set it up before running this script." echo "GIT does not exist. Please set it up before running this script."
EXIT /B 1 EXIT /B 1
) )
WHERE node WHERE node
if (%ERRORLEVEL% > 0) then ( if %ERRORLEVEL% NEQ 0 (
echo "NODE does not exist. Please set it up before running this script." echo "NODE does not exist. Please set it up before running this script."
EXIT /B 1 EXIT /B 1
) )
WHERE npm WHERE npm
if (%ERRORLEVEL% > 0) then ( if %ERRORLEVEL% NEQ 0 (
echo "NPM does not exist. Please set it up before running this script." echo "NPM does not exist. Please set it up before running this script."
EXIT /B 1 EXIT /B 1
) )
WHERE gulp WHERE gulp
if (%ERRORLEVEL% > 0) then ( if %ERRORLEVEL% NEQ 0 (
echo "GULP does not exist. Please set it up before running this script." echo "GULP does not exist. Please set it up before running this script."
EXIT /B 1 EXIT /B 1
) )
@ -49,7 +49,7 @@ call npm install
call npm i -g gulp-cli call npm i -g gulp-cli
:: Set expiry if required :: Set expiry if required
IF ("%EXPIRY_PERIOD%"=="") then ( IF "%EXPIRY_PERIOD%"=="" (
echo "Not setting expiry for the build!" echo "Not setting expiry for the build!"
) else ( ) else (
echo "Setting expiry to days: %EXPIRY_PERIOD%" echo "Setting expiry to days: %EXPIRY_PERIOD%"