Last active
May 2, 2019 07:03
-
-
Save JimBobSquarePants/30757c2b7588d84cfb84750d24d4d6f0 to your computer and use it in GitHub Desktop.
cmd to bash???
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
ghuntley
commented
May 2, 2019
- http://redsymbol.net/articles/unofficial-bash-strict-mode/
- https://github.com/coryb/osht/blob/master/README.md
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment