Skip to content

Commit

Permalink
minor: Use -n instead of ! -z
Browse files Browse the repository at this point in the history
  • Loading branch information
Rahulkhinchi03 authored and strkkk committed May 25, 2022
1 parent 1466798 commit 962865b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/no_old_refs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
LINKED_ISSUES=${{ steps.links.outputs.issues }}
LINKED_ISSUES_FORMATTED=/tmp/linked_issues
CHECKSTYLE_ISSUE_URL="https:\/\/github.com\/checkstyle\/checkstyle\/issues\/"
if [ ! -z "$LINKED_ISSUES" ]; then
if [ -n "$LINKED_ISSUES" ]; then
echo $LINKED_ISSUES | sed -e 's/,/\n/g' >> $LINKED_ISSUES_FORMATTED
sed -i "s/^/$CHECKSTYLE_ISSUE_URL/" $LINKED_ISSUES_FORMATTED
fi
Expand Down

0 comments on commit 962865b

Please sign in to comment.