Skip to content

Commit a2740d5

Browse files
committed
use bc to evaluate if the timeout is > 0 to handle floats
Signed-off-by: Zen <[email protected]>
1 parent 7f326c1 commit a2740d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ugrd/base/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def prompt_user(self) -> list[str]:
268268
else:
269269
output += [r'printf "\033[1;35m *\033[0m %s\n" "$prompt"']
270270
output += [
271-
'if [ -z "$2" ] || [ "$2" -eq 0 ]; then',
271+
"""if [ -z "$2" ] || [ "$(echo "$2 > 0" | bc)" -eq 0 ]; then""",
272272
' while ! wait_for_space; do',
273273
' ewarn "Invalid input, press space to continue."',
274274
' done',

0 commit comments

Comments
 (0)