@indigoai-us/hq-cloud 5.48.0 → 5.48.1
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/replace-rescue.sh +15 -1
package/package.json
CHANGED
|
@@ -1397,4 +1397,18 @@ echo ""
|
|
|
1397
1397
|
echo "==> Done. Source: $SOURCE_REPO@$REF ($SRC_SHA)"
|
|
1398
1398
|
echo " User-edited files were rescued under personal/ (see scan output above)."
|
|
1399
1399
|
echo " User-only files (created by you, unknown to upstream) were left untouched."
|
|
1400
|
-
|
|
1400
|
+
# Snapshot path footer: emit only when a backup was actually taken AND its
|
|
1401
|
+
# resolved dir is non-empty. Wrapped in `if/then/fi` (not a `[...] && [...]
|
|
1402
|
+
# && echo` chain) so the script's final exit status is independent of the
|
|
1403
|
+
# branch taken — a `[ DO_BACKUP = 1 ]` test returning false in a `&&` chain
|
|
1404
|
+
# became this script's exit code under `set -e`, which kills any parent
|
|
1405
|
+
# wrapper script (e.g. `apps/hq-cloud/scripts/vault-rescue.sh`) that runs
|
|
1406
|
+
# us under `set -euo pipefail`.
|
|
1407
|
+
if [ "$DO_BACKUP" = "1" ] && [ -n "$BACKUP_DIR" ]; then
|
|
1408
|
+
echo " A full pre-update snapshot is at $BACKUP_DIR (RECOVERY.md explains restore)."
|
|
1409
|
+
fi
|
|
1410
|
+
|
|
1411
|
+
# Always succeed if we reached the end. Without this, a future maintainer
|
|
1412
|
+
# could add another conditional trailing line and silently regress the
|
|
1413
|
+
# wrapper-script-kill bug. Explicit > implicit for the script's contract.
|
|
1414
|
+
exit 0
|