scripting:bash:exitcode
When you want to check/validate that a command ran fine, you need to recuperate its exit code.
Again several ways:
- Easy:
command returnvalue=$?
- All at once:
returnvalue=$(command)$?
scripting/bash/exitcode.txt · Last modified: 2020/12/17 05:23 by 127.0.0.1