From 72f9aa43c159ee1a986beccebf035a4231499f36 Mon Sep 17 00:00:00 2001 From: Karl Horky Date: Sat, 26 Oct 2024 18:02:38 +0200 Subject: [PATCH] Remove extra slashes --- bin/preflight.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/preflight.sh b/bin/preflight.sh index c0edadec..e333dc32 100755 --- a/bin/preflight.sh +++ b/bin/preflight.sh @@ -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