Skip to content

Commit

Permalink
devonfw#632: improved fork detection
Browse files Browse the repository at this point in the history
optimized to avoid overhead
  • Loading branch information
hohwille committed May 30, 2022
1 parent 3a0c59b commit 700bec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/src/main/resources/scripts/command/release
Original file line number Diff line number Diff line change
Expand Up @@ -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/$(whoami)" || git remote -v | grep -q "upstream"
if git remote -v | grep -q -e "github.com/$(whoami)" -e "upstream"
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."
Expand Down

0 comments on commit 700bec4

Please sign in to comment.