Skip to content

Commit d037e31

Browse files
TorbenWetterjuliusmarminge
authored andcommitted
fix(ssh): pass the quoted package spec as a printf argument
The install-failure message embedded the pre-quoted spec inside a single-quoted format string, closing it early. %s keeps the spec one safe word on the error path too.
1 parent da8ef8a commit d037e31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/ssh/src/tunnel.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ require_installed_t3_cli() {
437437
if [ -n "$T3_CLI_PATH" ]; then
438438
return 0
439439
fi
440-
printf 'Remote host installed @@T3_PACKAGE_SPEC@@ but npm produced no t3 executable, which usually means a native dependency (node-pty) failed to build. Install a C toolchain on the remote host (Debian/Ubuntu: build-essential, Fedora/RHEL: gcc-c++ make, macOS: xcode-select --install) and try again.\\n' >&2
440+
printf 'Remote host installed %s but npm produced no t3 executable, which usually means a native dependency (node-pty) failed to build. Install a C toolchain on the remote host (Debian/Ubuntu: build-essential, Fedora/RHEL: gcc-c++ make, macOS: xcode-select --install) and try again.\\n' @@T3_PACKAGE_SPEC@@ >&2
441441
return 1
442442
}
443443
if command -v npx >/dev/null 2>&1; then

0 commit comments

Comments
 (0)