Skip to content

Commit 6ea9701

Browse files
committed
fix: allow script to run on MacOS safely
1 parent 59b7905 commit 6ea9701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check_message.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ then
3232
fi
3333

3434
# removing comment lines from message
35-
MESSAGE=$(sed '/^#/d' "$1")
35+
MESSAGE=$(sed -i'' '/^#/d' "${1}")
3636

3737
FIRST_WORD=${MESSAGE%% *}
3838
if [[ "${FIRST_WORD,,}" == merge ]]

0 commit comments

Comments
 (0)