Skip to content

Instantly share code, notes, and snippets.

@ialex32x
Created May 13, 2019 08:48
Show Gist options
  • Save ialex32x/97e5aabae8fa8b642475c5351fbbed07 to your computer and use it in GitHub Desktop.
Save ialex32x/97e5aabae8fa8b642475c5351fbbed07 to your computer and use it in GitHub Desktop.
在bat批处理中判断上一条命令执行结果
echo building...
go build -o sgless
if %errorlevel% NEQ 0 (
exit 2
)
echo all done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment