int status, len;
char *scriptname;
int i;
+ char *aInterpreter = NULL;
#ifndef HAVE_MINGW
len = xasprintf(&scriptname, "\"%s/%s\"", confbase, name);
}
#endif
+ // Custom scripts interpreter
+ if(get_config_string(lookup_config(config_tree, "ScriptsInterpreter"), &aInterpreter))
+ {
+ // Force custom scripts interpreter allowing execution of scripts on android without execution flag (such as on /sdcard)
+ free(scriptname);
+ len = xasprintf(&scriptname, "%s \"%s/%s\"", aInterpreter, confbase, name);
+ if(len < 0)
+ {
+ free(aInterpreter);
+ return false;
+ }
+ }
+ free(aInterpreter);
+
ifdebug(STATUS) logger(LOG_INFO, "Executing script %s", name);
#ifdef HAVE_PUTENV