1
0
mirror of https://github.com/sasjs/server.git synced 2025-12-10 19:34:34 +00:00

fix: ensuring nosplash option only applies for sas.exe

Closes #229
This commit is contained in:
Allan Bowe
2022-07-18 11:55:35 +00:00
parent 2e53d43e11
commit 65e6de9663

View File

@@ -16,6 +16,7 @@ import {
readFile,
isWindows
} from '@sasjs/utils'
import { processProgram } from './processProgram'
const execFilePromise = promisify(execFile)
@@ -101,7 +102,7 @@ ${autoExecContent}`
session.path,
'-AUTOEXEC',
autoExecPath,
isWindows() ? '-nosplash' : '',
process.sasLoc.endsWith('sas.exe') ? '-nosplash' : '',
isWindows() ? '-icon' : '',
isWindows() ? '-nologo' : ''
])