瀏覽代碼

wrap

main
Jan Lehnardt 1 年之前
父節點
當前提交
4bd87a344c
共有 1 個檔案被更改,包括 2 行新增1 行删除
  1. +2
    -1
      trap_error_example.sh

+ 2
- 1
trap_error_example.sh 查看文件

@@ -1,4 +1,5 @@
# if you run a script with -e that produces state that you want to clean up if anything goes wrong in your script, this helps:
# if you run a script with -e that produces state that you want to clean up if
# anything goes wrong in your script, this helps:

trap 'handle_error' ERR



Loading…
取消
儲存