set command
Others
2022-04-22 21:41:51
views: 0
- If it encounters a variable that does not exist, it will report an error and stop execution.
set -u
set -o nounset
- Before running the result, output the line of command that was executed.
set -x
set -o xtrace
- Terminate execution after an error occurs.
set -e
set -o errexit
- If the subcommand fails, the entire pipeline command fails, and the script terminates execution.
set -eo pipefail
Origin http://43.154.161.224:23101/article/api/json?id=325258860&siteId=291194637