From e63271a67a0deb3059a5f2bec1854efee5a6e5a5 Mon Sep 17 00:00:00 2001 From: Allan Bowe Date: Thu, 1 Sep 2022 12:18:53 +0000 Subject: [PATCH] fix: making SASINITIALFOLDER option windows only. Closes #267 --- api/src/controllers/internal/Session.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/api/src/controllers/internal/Session.ts b/api/src/controllers/internal/Session.ts index e34da54..ef46656 100644 --- a/api/src/controllers/internal/Session.ts +++ b/api/src/controllers/internal/Session.ts @@ -101,13 +101,12 @@ ${autoExecContent}` session.path, '-AUTOEXEC', autoExecPath, - '-SASINITIALFOLDER', - session.path, process.sasLoc!.endsWith('sas.exe') ? '-nosplash' : '', process.sasLoc!.endsWith('sas.exe') ? '-icon' : '', process.sasLoc!.endsWith('sas.exe') ? '-nodms' : '', process.sasLoc!.endsWith('sas.exe') ? '-noterminal' : '', process.sasLoc!.endsWith('sas.exe') ? '-nostatuswin' : '', + process.sasLoc!.endsWith('sas.exe') ? '-SASINITIALFOLDER' : session.path, isWindows() ? '-nologo' : '' ]) .then(() => {