File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ exit status 2
4747
4848不管是正常退出还是异常退出,进程都结束了这个退出码有意义吗?
4949
50- 当然有意义,我们在写Bash脚本时,可以根据前一个命令的退出码选择是否执行下一个命令。例如安装Run程序的命令` wget https://raw.githubusercontent. com/runscripts/run/packages/packages/darwin_amd64/ run || sudo run --init ` ,只有下载脚本成功才会执行后面的安装命令。
50+ 当然有意义,我们在写Bash脚本时,可以根据前一个命令的退出码选择是否执行下一个命令。例如安装Run程序的命令` wget https://github. com/runscripts/run-release/blob/master/0.3.6/linux_amd64/ run && sudo run --init ` ,只有下载脚本成功才会执行后面的安装命令。
5151
5252[ Travis CI] ( https://travis-ci.org/ ) 是为开源项目提供持续集成的网站,因为测试脚本是由开发者写的,Travis只能通过测试脚本的返回值来判断这次测试是否正常通过。
5353
Original file line number Diff line number Diff line change @@ -13,11 +13,10 @@ import (
1313 " os"
1414)
1515
16- func main () {
16+ func main () {
1717 processName := os.Args [0 ]
1818
1919 fmt.Println (processName)
20- }
2120}
2221```
2322
Original file line number Diff line number Diff line change 11
22## 查看PID
33
4- 首先我们想知道进程的PID,可以通过` top ` 或者` ps ` 命令还查看 。
4+ 首先我们想知道进程的PID,可以通过` top ` 或者` ps ` 命令来查看 。
55
66## Top
77
You can’t perform that action at this time.
0 commit comments