공부

[sh] exit code

승가비 2023. 6. 20. 21:01
728x90
output=$(...)
status=$?
[[ $status == 1 ]] && exit 1

https://www.cyberciti.biz/faq/bash-get-exit-code-of-command/

 

728x90
저작자표시 비영리 (새창열림)