fix(installer): harden dry runs and unit escaping

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-07-22 19:38:47 +00:00
1 parent 108895421f
commit 3eafbb13a3
3 files changed
+20 -4

No files matched your search

+4 -3
View File
@@ -354,15 +354,16 @@ INSTALL_ARGS=(install)
[ "$CANARY" = "1" ] && INSTALL_ARGS+=(--canary)
[ -n "$VERSION" ] && INSTALL_ARGS+=(--version "$VERSION")
[ "$NO_PROMPT" = "1" ] && INSTALL_ARGS+=(--yes)
INSTALL_COMMAND=(npx --yes "$PACKAGE_SPEC" "${INSTALL_ARGS[@]}")
log "Delegating to the Paperclip CLI"
print_command npx --yes "$PACKAGE_SPEC" "${INSTALL_ARGS[@]}"
if [ "$DRY_RUN" = "1" ]; then
print_command "${INSTALL_COMMAND[@]}"
exit 0
fi
npx --yes "$PACKAGE_SPEC" "${INSTALL_ARGS[@]}"
print_command "${INSTALL_COMMAND[@]}"
"${INSTALL_COMMAND[@]}"
if [ "$INSTALL_SERVICE" = "1" ]; then
log "Installing the Paperclip service"