@feigi/fleet-ctl 3.24.20 → 3.24.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/scripts/json.sh +7 -6
package/package.json
CHANGED
package/scripts/json.sh
CHANGED
|
@@ -16,14 +16,15 @@
|
|
|
16
16
|
# non-interactive shell outright, so `||` never runs. Measured on a missing
|
|
17
17
|
# file with `set -e`: /bin/sh (macOS bash 3.2) and bash 3.2/`--posix` exit **1**
|
|
18
18
|
# with the guard unfired, dash exits 2 unfired, and only Homebrew bash 5.3
|
|
19
|
-
# reaches the `|| die`. Exit 1 is a VERDICT in
|
|
19
|
+
# reaches the `|| die`. Exit 1 is a VERDICT in every caller that defines one —
|
|
20
20
|
# inflight.sh reads it as "ticket taken", verify-sha.sh as "not reachable",
|
|
21
21
|
# prove-merge.sh as "not proved", no-undo-audit.sh as "REFUSED, the worktree is
|
|
22
|
-
# dirty", release-ticket.sh as "NOT released, blocked"
|
|
23
|
-
#
|
|
24
|
-
# worktree-audit.sh define no exit 1
|
|
25
|
-
#
|
|
26
|
-
#
|
|
22
|
+
# dirty", release-ticket.sh as "NOT released, blocked", delete-merged-branch.sh
|
|
23
|
+
# as "the branch is STILL on origin" — so a lib that merely went missing would
|
|
24
|
+
# fabricate one. claim-ticket.sh, reap.sh and worktree-audit.sh define no exit 1
|
|
25
|
+
# at all, which is not safety: a bare 1 out of them is a code their caller has
|
|
26
|
+
# no reading for. The `[ -r ]` catches that before `.` can kill the shell; the
|
|
27
|
+
# `|| die` stays for the case `[ -r ]`
|
|
27
28
|
# cannot see, and that case is live rather than theoretical — a DIRECTORY at
|
|
28
29
|
# this path passes `[ -r ]` and `.` returns 1 with the arm firing (measured,
|
|
29
30
|
# /bin/sh and bash 5.3; dash sources a directory at exit 0 instead). A lib that
|