Skip to content

Commit

Permalink
feat/util-sync-with-upstream new line ignore (#6)
Browse files Browse the repository at this point in the history
* feat/util-sync-with-upstream new line ignore
  • Loading branch information
hminaee-tc authored Jul 18, 2024
1 parent 9a8acc3 commit 3e7746a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hooks/utils/fork_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ get_upstream() {
log "INFO" "contents of .github/UPSTREAM not in valid format - can contain only 1 non-comment line with git url"
exit 1
else
upstream_local=$(cat .github/UPSTREAM | grep -v '^#')
# remove comments and empty lines
upstream_local=$(cat .github/UPSTREAM | grep -vE '(^#|^$)')
fi
log "INFO" "upstream_local is: $upstream_local"
echo "$upstream_local"
Expand Down

0 comments on commit 3e7746a

Please sign in to comment.