From eebc555f525085297416aa5d7e74f3950eb43c86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dennis=20Gl=C3=A4ser?= <dennis.glaeser@iws.uni-stuttgart.de>
Date: Tue, 5 Oct 2021 12:37:28 +0200
Subject: [PATCH] [bin][makeinstall] fix filename arg parse

---
 bin/make_installscript.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bin/make_installscript.py b/bin/make_installscript.py
index 57e9fef349..89a2a088dd 100755
--- a/bin/make_installscript.py
+++ b/bin/make_installscript.py
@@ -109,7 +109,9 @@ def runMakeInstallScript():
     modName = getModuleInfo(modPath, "Module")
     printProgressInfo([f"Creating install script for module '{modName}' in folder '{modPath}'"])
 
-    scriptName = cmdArgs.get("filename", getDefaultScriptName(modName, cmdArgs["language"]))
+    scriptName = cmdArgs.get("filename")
+    if not scriptName:
+        scriptName = getDefaultScriptName(modName, cmdArgs["language"])
 
     makeInstallScript(
         modPath=modPath,
-- 
GitLab