Skip to content

Commit

Permalink
err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
rushatgabhane committed Apr 17, 2024
1 parent 99ee30d commit 02a3b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/verifyRedirect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@

declare -r REDIRECTS_FILE="docs/redirects.csv"

duplicates=$(awk -F, 'a[$1]++{print "duplicate redirects are not allowed: " $1}' $REDIRECTS_FILE)
duplicates=$(awk -F, 'a[$1]++{print $1}' $REDIRECTS_FILE)

if [[ -z "$duplicates" ]]; then
exit 0
fi

echo $duplicates
echo "duplicate redirects are not allowed: $duplicates"
exit 1

0 comments on commit 02a3b82

Please sign in to comment.