Skip to content

Commit 2afb8bb

Browse files
committed
trap修正
1 parent 4c5a0ea commit 2afb8bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/diff-match/for-multi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33
set -x
4-
trap 'echo "Script exited with code $? at line $LINENO"' EXIT
4+
trap 'echo "Script exited with code $? at line $LINENO"; exit 1' ERR
55

66
base_branch="$1"
77
head_branch="$2"

0 commit comments

Comments
 (0)