diff options
author | Naïm Favier <n@monade.li> | 2023-12-04 19:06:30 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2023-12-04 19:06:30 +0100 |
commit | 1a1a8d2559b28d99086947934f33c137fd81c816 (patch) | |
tree | 374ed56d9ebc4ab36a2231730d477af339e0f209 /maintainers/scripts | |
parent | 1bd6371376766bcd72fdff63887f6e5aa89c92d2 (diff) |
maintainers/scripts/merge-and-open-pr: fix error handling
Calling `die` in a subshell hides the error message.
Diffstat (limited to 'maintainers/scripts')
-rwxr-xr-x | maintainers/scripts/haskell/merge-and-open-pr.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maintainers/scripts/haskell/merge-and-open-pr.sh b/maintainers/scripts/haskell/merge-and-open-pr.sh index cdba24f0c2077..62565d24d6231 100755 --- a/maintainers/scripts/haskell/merge-and-open-pr.sh +++ b/maintainers/scripts/haskell/merge-and-open-pr.sh @@ -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..." |