Skip to content

Commit

Permalink
Remove extra slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Oct 26, 2024
1 parent d95eb6a commit 72f9aa4
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 @@ -12,7 +12,7 @@ exec_command=$(awk '/^else$/{flag=1;next}/^fi$/{flag=0}flag' "$tsx_shim" | grep
cli_path=$(echo "$exec_command" | sed -E 's/^[[:space:]]*exec node[[:space:]]+"([^"]+)".*/\1/')
cli_path="${cli_path/\$basedir/$script_dir}"
pnpm_bin_global="$(pnpm bin --global)"
cli_path="${cli_path/\/$pnpm_bin_global\//\/$pnpm_bin_global\/global\/5\/.pnpm\/}"
cli_path="${cli_path/$pnpm_bin_global\//$pnpm_bin_global\/global\/5\/.pnpm\/}"

if [[ ! -x "$cli_path" ]]; then
echo "Error: tsx executable not found or is not executable at $cli_path" >&2
Expand Down

0 comments on commit 72f9aa4

Please sign in to comment.