This commit is contained in:
2026-06-28 08:51:25 +05:30
parent 671cf7f818
commit 190f337f12
34 changed files with 650 additions and 648 deletions

View File

@@ -262,7 +262,7 @@ for script in "${SCRIPTS[@]}"; do
fi
;;
fall)
local savepoint_name="${1:-}"
savepoint_name="${1:-}"
if [ -z "$savepoint_name" ]; then
log_error "Usage: b fall <savepoint_name>"
exit 1
@@ -271,11 +271,25 @@ for script in "${SCRIPTS[@]}"; do
exit 0
;;
rb)
local target="${1:-}"
target="${1:-}"
if [ -z "$target" ]; then
rollback_bare
else
rollback_to_savepoint "$target"
# Split comma-separated targets
IFS=',' read -ra TARGETS <<< "$target"
if [ ${#TARGETS[@]} -gt 1 ]; then
for t in "${TARGETS[@]}"; do
uninstall_tool "$t"
done
else
registry_file="$BOOTSTRAP_STATE_DIR/registry.json"
if [ -f "$registry_file" ] && jq -e --arg t "$target" '.tools | has($t)' "$registry_file" >/dev/null; then
uninstall_tool "$target"
else
rollback_to_savepoint "$target"
fi
fi
fi
exit 0
;;