cmd_file = fdopen (cmd_file_fd, "w");
- fputs ("#! /bin/sh\n\n", cmd_file);
-+ fputs ("#! /system/bin/sh\n\n", cmd_file);
++ fputs ("#! @TERMUX_PREFIX@/bin/sh\n\n", cmd_file);
export_variables = exec_get_export_variables (filename_vpath);
if (export_variables != NULL)
*/
if (!run_view)
- fprintf (cmd_file, "\n/bin/rm -f %s\n", vfs_path_as_str (script_vpath));
-+ fprintf (cmd_file, "\n/system/bin/rm -f %s\n", vfs_path_as_str (script_vpath));
++ fprintf (cmd_file, "\n@TERMUX_PREFIX@/bin/applets/rm -f %s\n", vfs_path_as_str (script_vpath));
fclose (cmd_file);
mc_chmod (script_vpath, S_IRWXU);
/* ... but don't rely on it - run /bin/sh explicitly */
- cmd = g_strconcat ("/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL);
-+ cmd = g_strconcat ("/system/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL);
++ cmd = g_strconcat ("@TERMUX_PREFIX@/bin/sh ", vfs_path_as_str (script_vpath), (char *) NULL);
}
if (run_view)