Skip to content
Snippets Groups Projects
Commit 89b228a7 authored by dilawar's avatar dilawar :ant:
Browse files

chore: updates to server.

parent 13ae19f8
No related branches found
No related tags found
1 merge request!12Resolve "Implement first version of BiTIA DSL parser"
Pipeline #4125 passed with stages
in 4 minutes and 7 seconds
...@@ -11,6 +11,7 @@ from pathlib import Path ...@@ -11,6 +11,7 @@ from pathlib import Path
# from datetime import datetime # from datetime import datetime
import validators import validators
from bitia import version
import bitia.config as bconfig import bitia.config as bconfig
from bitia.common import sha256sum, dir_info from bitia.common import sha256sum, dir_info
from bitia.logger import logger from bitia.logger import logger
...@@ -71,6 +72,8 @@ class Pipeline: ...@@ -71,6 +72,8 @@ class Pipeline:
pipeline_file = pipeline_dir / bconfig.BITIA_MAIN_SCRIPT_NAME pipeline_file = pipeline_dir / bconfig.BITIA_MAIN_SCRIPT_NAME
lines: T.List[str] = [] lines: T.List[str] = []
lines.append("#!/bin/sh") lines.append("#!/bin/sh")
lines.append(f"# generated by bitia-cli version: {version()}")
lines.append("# (c) 2022-, Subconscious Compute")
assert "\n" not in comment, "An eol char is found in comment" assert "\n" not in comment, "An eol char is found in comment"
lines.append(f"# {comment}") lines.append(f"# {comment}")
lines.append(f"{cmd}") lines.append(f"{cmd}")
......
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