Skip to content

Instantly share code, notes, and snippets.

@JimBobSquarePants
Last active May 2, 2019 07:03
Show Gist options
  • Save JimBobSquarePants/30757c2b7588d84cfb84750d24d4d6f0 to your computer and use it in GitHub Desktop.
Save JimBobSquarePants/30757c2b7588d84cfb84750d24d4d6f0 to your computer and use it in GitHub Desktop.
cmd to bash???
@echo Off
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\build.ps1'"
if not "%errorlevel%"=="0" goto failure
:success
ECHO successfully built project
REM exit 0
goto end
:failure
ECHO failed to build.
REM exit -1
goto end
:end
#!/bin/sh
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\build.ps1'"
if $errorlevel != "0" ;
then goto failure
fi
:success
echo successfully built project
# exit 0
goto end
:failure
echo failed to build.
# exit -1
goto end
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment