Skip to content

Commit c308b65

Browse files
committed
please.sh upgrade: it is okay not to generate artifacts
The primary users of this sub-command are Git for Windows' Azure Pipelines that are used to build the Pacman packages and upload them to Git for Windows' Pacman repositories. Naturally, those Pipelines want to generate the artifacts, so that the commits can be pushed when everything succeeded (and only then). But it is not a mistake to run this sub-command manually, without generating those artifacts. Yet the script would fail in that case. Fix this. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 81d5b8a commit c308b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

please.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2228,7 +2228,7 @@ ensure_gpg_key () {
22282228
}
22292229

22302230
create_bundle_artifact () {
2231-
test -n "$artifactsdir" || return
2231+
test -n "$artifactsdir" || return 0
22322232
upstream_main_branch="$(git rev-parse --verify -q git-for-windows/main)" ||
22332233
upstream_main_branch="$(git rev-parse --verify -q origin/main)" ||
22342234
return

0 commit comments

Comments
 (0)