From 2b63d207a80376900c0d3b4e6b686e70d91d7b70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohwiller?= Date: Mon, 30 May 2022 09:02:12 +0200 Subject: [PATCH] #632: fixed user/fork detection --- scripts/src/main/resources/scripts/command/release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/src/main/resources/scripts/command/release b/scripts/src/main/resources/scripts/command/release index ca4c1b375..65b5f83ab 100755 --- a/scripts/src/main/resources/scripts/command/release +++ b/scripts/src/main/resources/scripts/command/release @@ -35,7 +35,7 @@ then doFail "Your local git repository has uncommitted changes. Please use 'git stash' and rerun on clean repo." fi -if git remote -v | grep -q "github.com/${USER}" +if git remote -v | grep -q "github.com/$(whoami)" then git remote -v doConfirmWarning "You seem to work on a fork. Releases should be done on the original repository!\nWe strongly recommend to abort and rerun on original repository."