mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-26 10:26:26 +01:00
fix(installer): harden dry runs and unit escaping
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
108895421f
commit
3eafbb13a3
3 files changed
+20
-4
No files matched your search
+4
-3
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user