Skip to content

Commit

Permalink
Fix computing the value of node_pkg_name
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Oct 11, 2023
1 parent 1b52aca commit 5501bbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion run_demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5501bbb

Please sign in to comment.