Skip to content

Commit 9d55e5b

Browse files
committed
improve formatting, logging
Signed-off-by: Zen <[email protected]>
1 parent a9ba8c1 commit 9d55e5b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ugrd/base/console.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = "desultory"
2-
__version__ = "0.6.0"
2+
__version__ = "1.0.0"
33

44

55
def custom_init(self) -> str:
@@ -9,7 +9,7 @@ def custom_init(self) -> str:
99
Returns the output of console_init which is the command to start agetty.
1010
"""
1111
custom_init_contents = [self['shebang'],
12-
f"# Console module version v{__version__}",
12+
f'echo "Starting console module v{__version__}"',
1313
*self.generate_init_main()]
1414

1515
return console_init(self), custom_init_contents
@@ -18,7 +18,7 @@ def custom_init(self) -> str:
1818
def console_init(self) -> str:
1919
"""
2020
Start agetty on the primary console.
21-
Tell it to execute teh _custom_init_file
21+
Tell it to execute the _custom_init_file
2222
If the console is a serial port, set the baud rate.
2323
"""
2424
name = self['primary_console']

src/ugrd/crypto/gpg.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
def start_agent(self) -> str:
66
""" Start the GPG agent. """
7-
args = ' ' + " ".join(self['gpg_agent_args']) if self['gpg_agent_args'] else ""
8-
return f"gpg-agent {args}"
7+
args = (' ' + " ".join(self['gpg_agent_args'])) if self['gpg_agent_args'] else ""
8+
return f"gpg-agent{args}"
99

0 commit comments

Comments
 (0)