Skip to content
Snippets Groups Projects
Commit 7d755c38 authored by Simon Rose's avatar Simon Rose
Browse files

E3-1457: Get rid of multuple iocInits

parent 6f3ff904
No related branches found
No related tags found
1 merge request!161E3-1457: Get rid of multuple iocInits
Pipeline #176325 failed
......@@ -75,7 +75,11 @@ def iocsh(
if not no_init:
# if file isn't passed we shouldn't try to read its' content
if not file or re.search(r"^\s*iocInit\b", file.read_text()) is None:
if (
not file
or re.search(r"^\s*iocInit\b", file.read_text(), flags=re.MULTILINE)
is None
):
tmp_startup_script.add_command("iocInit")
tmp_startup_script.save()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment