Skip to content

Commit

Permalink
Escape slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Oct 26, 2024
1 parent 881a725 commit 413a4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/preflight.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo "script_dir: $script_dir"
# when the issue above is resolved
tsx_shim="$script_dir/../node_modules/.bin/tsx"
exec_command=$(awk '/^else$/{flag=1;next}/^fi$/{flag=0}flag' "$tsx_shim" | grep 'exec node')
cli_path=$(echo "$exec_command" | sed -E 's/^[[:space:]]*exec node[[:space:]]+"[^"]+(node_modules/tsx/[^"]+)".*/\1/')
cli_path=$(echo "$exec_command" | sed -E 's/^[[:space:]]*exec node[[:space:]]+"[^"]+(node_modules\/tsx\/[^"]+)".*/\1/')
cli_path="$(pnpm bin --global)/global/5/.pnpm/$cli_path"
# # pnpm_bin_global="$(pnpm bin --global)/global/5/.pnpm/$cli_path"
# # echo "pnpm_bin_global: $pnpm_bin_global"
Expand Down

0 comments on commit 413a4d4

Please sign in to comment.