diff options
-rw-r--r-- | ninja.cc | 5 | ||||
-rw-r--r-- | testcase/shell_var.mk | 2 |
2 files changed, 1 insertions, 6 deletions
@@ -626,10 +626,7 @@ class NinjaGenerator { if (fp == NULL) PERROR("fopen(ninja.sh) failed"); - shared_ptr<string> shell = ev_->EvalVar(kShellSym); - if (shell->empty()) - shell = make_shared<string>("/bin/sh"); - fprintf(fp, "#!%s\n", shell->c_str()); + fprintf(fp, "#!/bin/sh\n"); fprintf(fp, "# Generated by kati %s\n", kGitVersion); fprintf(fp, "\n"); if (ninja_dir_ == ".") diff --git a/testcase/shell_var.mk b/testcase/shell_var.mk index a0c556f..8f5de31 100644 --- a/testcase/shell_var.mk +++ b/testcase/shell_var.mk @@ -1,5 +1,3 @@ -# TODO(c-ninja): Fix - ninja.sh should not use $SHELL. - $(info $(SHELL)) SHELL:=/bin/echo |