https://blog.zeroplex.tw/2023/01/22/check-previous-command-status-in-shell-script/
Shell Script 判斷指令執行是否成功