We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca75ca commit 3cbe97bCopy full SHA for 3cbe97b
check_license/check_headers.sh
@@ -71,7 +71,8 @@ if [ $CHECK_ALL -eq 0 ]; then
71
CURRENT_COMMIT=$($GIT log --pretty=%H -1)
72
MERGE_BASE=$($GIT merge-base HEAD origin/master 2>/dev/null)
73
[ -z $MERGE_BASE ] && \
74
- MERGE_BASE=$($GIT log --pretty="%cN:%H" | grep GitHub | head -n1 | cut -d: -f2)
+ LOG_OUTPUT=$($GIT log --pretty="%cN:%H")
75
+ MERGE_BASE=$(echo "$LOG_OUTPUT" | grep GitHub | head -n1 | cut -d: -f2)
76
[ -z $MERGE_BASE -o "$CURRENT_COMMIT" = "$MERGE_BASE" ] && \
77
CHECK_ALL=1
78
fi
0 commit comments