check IOCSH_STARTUP_SCRIPT before set
This commit is contained in:
@ -1325,7 +1325,7 @@ iocshCmd (const char *cmd)
|
||||
int epicsStdCall
|
||||
iocshLoad(const char *pathname, const char *macros)
|
||||
{
|
||||
if (pathname)
|
||||
if (pathname && !getenv("IOCSH_STARTUP_SCRIPT"))
|
||||
epicsEnvSet("IOCSH_STARTUP_SCRIPT", pathname);
|
||||
return iocshBody(pathname, NULL, macros);
|
||||
}
|
||||
|
Reference in New Issue
Block a user