We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9a1db88 commit f74e5d9Copy full SHA for f74e5d9
src/zigUtil.ts
@@ -73,10 +73,10 @@ export function resolveExePathAndVersion(
73
// allow passing predefined variables
74
resolvedExePath = handleConfigOption(exePath);
75
76
- if (exePath.startsWith("~")) {
77
- resolvedExePath = path.join(os.homedir(), exePath.substring(1));
78
- } else if (!path.isAbsolute(exePath)) {
79
- resolvedExePath = which.sync(exePath, { nothrow: true });
+ if (resolvedExePath.startsWith("~")) {
+ resolvedExePath = path.join(os.homedir(), resolvedExePath.substring(1));
+ } else if (!path.isAbsolute(resolvedExePath)) {
+ resolvedExePath = which.sync(resolvedExePath, { nothrow: true });
80
}
81
82
0 commit comments