 |
How to check if a command succeeded? - Ask Ubuntu
2011年3月7日 - 0 indicates success, others indicates error. ... test command, not the shell's builtin test command; see the ... ||exit, which will end the script if the previous command failed.
askubuntu.com |
 |