From e787c8cd79d4cd40f009638b05e450c4ce1f1bd1 Mon Sep 17 00:00:00 2001 From: hminaee-tc Date: Thu, 18 Jul 2024 14:37:04 -0300 Subject: [PATCH] feat/util-sync-with-upstream new line ignore --- hooks/utils/fork_utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/utils/fork_utils.sh b/hooks/utils/fork_utils.sh index f147795..436d4f8 100755 --- a/hooks/utils/fork_utils.sh +++ b/hooks/utils/fork_utils.sh @@ -13,7 +13,7 @@ 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 '^#') + upstream_local=$(cat .github/UPSTREAM | grep -vE '(^#|^$)') fi log "INFO" "upstream_local is: $upstream_local" echo "$upstream_local"