From 4da4ae31d206bcb9a1d387c5a16fa680d971a0a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Sj=C3=B6berg?= Date: Thu, 11 Mar 2021 17:19:33 +0100 Subject: [PATCH] Respect TM_ZIG environment variable The argument passed to `require_cmd` did not respect the TM_ZIG environment variable. --- Commands/Fmt.tmCommand | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Commands/Fmt.tmCommand b/Commands/Fmt.tmCommand index 2520d2b..cab3a65 100644 --- a/Commands/Fmt.tmCommand +++ b/Commands/Fmt.tmCommand @@ -14,7 +14,7 @@ set -e PATH=/opt/local/bin:/usr/local/bin:/usr/local/zig/bin:$PATH -require_cmd zig +require_cmd "${TM_ZIG:-zig}" tmpfile=$(mktemp "${TMPDIR:-/tmp/}zig-fmt.XXXXXX") cat - > "$tmpfile"