3
0
Fork 0
forked from mirrors/nixpkgs

maintainers/scripts/merge-and-open-pr: fix error handling

Calling `die` in a subshell hides the error message.
This commit is contained in:
Naïm Favier 2023-12-04 19:06:30 +01:00
parent 1bd6371376
commit 1a1a8d2559
No known key found for this signature in database
GPG key ID: 95AFCE8211908325

View file

@ -54,8 +54,8 @@ if ! gh auth status 2>/dev/null ; then
fi
# Make sure this is configured before we start doing anything
push_remote="$(git config branch.haskell-updates.pushRemote \
|| die 'Can'\''t determine pushRemote for haskell-updates. Please set using `git config branch.haskell-updates.pushremote <remote name>`.')"
push_remote="$(git config branch.haskell-updates.pushRemote)" \
|| die 'Can'\''t determine pushRemote for haskell-updates. Please set using `git config branch.haskell-updates.pushremote <remote name>`.'
# Fetch nixpkgs to get an up-to-date origin/haskell-updates branch.
echo "Fetching origin..."