This commit is contained in:
Joel Rosdahl 2012-03-05 21:32:02 +01:00
parent 7c5a69e521
commit 4bb419c870

View File

@ -100,7 +100,7 @@ win32getshell(char *path)
ext = get_extension(path);
if (ext && strcasecmp(ext, ".sh") == 0 && (path_env = getenv("PATH")))
sh = find_executable_in_path("sh.exe", NULL, path_env);
if (!sh && gevenv("CCACHE_DETECT_SHEBANG")) {
if (!sh && getenv("CCACHE_DETECT_SHEBANG")) {
/* Detect shebang. */
FILE *fp;
fp = fopen(path, "r");