new project pushd not working on linux

master
Allen Webster 2017-11-22 13:56:51 -05:00
parent dd4de020c0
commit 474e348aa3
1 changed files with 2 additions and 2 deletions

View File

@ -744,13 +744,13 @@ CUSTOM_DOC("Queries the user for several configuration options and initializes a
fprintf(sh_script, "OPTS=%.*s\n",
default_flags_sh.size, default_flags_sh.str);
fprintf(sh_script, "pushd %.*s > /dev/null\n",
fprintf(sh_script, "cd %.*s > /dev/null\n",
output_dir.size, output_dir.str);
fprintf(sh_script, "%.*s $OPTS $CODE_HOME/%.*s -o %.*s\n",
default_compiler_sh.size, default_compiler_sh.str,
code_file.size, code_file.str,
binary_file.size, binary_file.str);
fprintf(sh_script, "popd > /dev/null\n");
fprintf(sh_script, "cd $CODE_HOME > /dev/null\n");
fclose(sh_script);
}