Skip to content

Commit 3212132

Browse files
committed
shell code improvements
Signed-off-by: Zen <[email protected]>
1 parent 2367edb commit 3212132

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ugrd/base/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def prompt_user(self) -> str:
168168
return ['prompt=${1:-"Press enter to continue."}',
169169
r'echo -e "\e[1;35m *\e[0m $prompt"',
170170
'if [ -n "$2" ]; then',
171-
' read -t $2 -rs',
171+
' read -t "$2" -rs',
172172
'else',
173173
' read -rs',
174174
'fi']

src/ugrd/crypto/cryptsetup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'desultory'
2-
__version__ = '2.0.0'
2+
__version__ = '2.0.1'
33

44
from zenlib.util import check_dict
55

@@ -199,7 +199,7 @@ def open_crypt_key(self, name: str, parameters: dict) -> tuple[list[str], str]:
199199
key_path = f"/run/vars/key_{name}"
200200

201201
out = [f" einfo 'Attempting to open luks key for {name}'"]
202-
out += [f" {parameters['key_command']} {key_path}"]
202+
out += [f' {parameters["key_command"]} "{key_path}"']
203203

204204
return out, key_path
205205

0 commit comments

Comments
 (0)