From f925ba16b9a1bb70b9fad99b7c5c7fff926fc135bffe0ce3f6ae87b7ca46eddd Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Fri, 29 Dec 2023 11:02:54 +0000 Subject: [PATCH] - Escape `quilt setup` invoked section in the helper script OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/local-npm-registry?expand=0&rev=11 --- local-npm-registry.changes | 5 +++++ local-npm-registry.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/local-npm-registry.changes b/local-npm-registry.changes index bbeea8c..5705a64 100644 --- a/local-npm-registry.changes +++ b/local-npm-registry.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Dec 29 11:02:40 UTC 2023 - Adam Majer + +- Escape `quilt setup` invoked section in the helper script + ------------------------------------------------------------------- Fri Jul 21 12:59:44 UTC 2023 - Adam Majer 1.0.1 diff --git a/local-npm-registry.spec b/local-npm-registry.spec index d8207d7..f7dc836 100644 --- a/local-npm-registry.spec +++ b/local-npm-registry.spec @@ -44,10 +44,10 @@ cp -r dist node_modules %{buildroot}%{_datadir}/%{name} cat > %{buildroot}%{_bindir}/local-npm-registry << EOF #!/bin/sh -if [ "x$QUILT_COMMAND" = "xsetup" ] +if [ "x\$QUILT_COMMAND" = "xsetup" ] then echo "Run in setup mode. 'npm install' skipped. Run 'npm ci' manually." - cp "$RPM_SOURCE_DIR/package-lock.json" . + cp "\$RPM_SOURCE_DIR/package-lock.json" . exit 0 fi