diff --git a/generate/generate.py b/generate/generate.py index 1c20f91..1672634 100644 --- a/generate/generate.py +++ b/generate/generate.py @@ -14,6 +14,14 @@ from pathlib import Path from container import ConfigError, Container from log import Log +GENERATE_VERSION = "0.0.2" +HEADER = f"""#!/bin/sh +# This script was generated by containerctl v{GENERATE_VERSION} +# Report bugs with _this script_ to + + +""" + def load_container_config(file: Path, log: Log) -> dict | None: """Load a container config.""" @@ -107,7 +115,7 @@ def main() -> None: if script_content == "": script_content = "true" with s.open("w+", encoding="utf-8") as f: - f.write("#!/bin/sh\n") + f.write(HEADER) f.write(script_content) s.chmod( stat.S_IRWXU