Skip to content

Commit 19f4047

Browse files
viqviq
authored and
viq
committed
test: Fix awk usage for printing refs
This should print more fields than just 3rd one if they're present.
1 parent 3e4652d commit 19f4047

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test-commit-message.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ then
130130
ref=${GITHUB_BASE_REF}
131131
head=${GITHUB_SHA}
132132
else
133-
ref=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
133+
ref=$(echo $GITHUB_REF | cut -d/ -f3-)
134134
head=""
135135
fi
136136
commits=$(git log --no-merges --format=%H origin/${ref}..${head})

0 commit comments

Comments
 (0)