From 5501bbba4ebc6a2516bd140f0d9c6e9beb3a67b7 Mon Sep 17 00:00:00 2001 From: Chris Burr Date: Sun, 8 Oct 2023 14:01:28 +0200 Subject: [PATCH] Fix computing the value of node_pkg_name --- run_demo.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_demo.sh b/run_demo.sh index 034e9a3..8e53ed5 100755 --- a/run_demo.sh +++ b/run_demo.sh @@ -154,7 +154,7 @@ for src_dir in "$@"; do # Node packages: we keep a single package, the last one found # shellcheck disable=SC2044 for pkg_json in $(find "$src_dir" -mindepth 1 -maxdepth 1 -type f -name 'package.json'); do - node_pkg_name=$(jq -r '.name' < "${pkg_json}") + node_pkg_name="$(basename "$(dirname "${pkg_json}")")" done done