diff options
Diffstat (limited to 'gotrc-examples/no-empty-user')
| -rw-r--r-- | gotrc-examples/no-empty-user | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gotrc-examples/no-empty-user b/gotrc-examples/no-empty-user index 4cdec36..074bd14 100644 --- a/gotrc-examples/no-empty-user +++ b/gotrc-examples/no-empty-user @@ -2,7 +2,7 @@ # gates-of-tartaros – Minimal replacement for agetty with SSH support # -# Copyright © 2013, 2014, 2015 Mattias Andrée (maandree@member.fsf.org) +# Copyright © 2013, 2014, 2015 Mattias Andrée (m@maandree.se) # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,11 +24,9 @@ read_function_no_empty_user=$read_function read_function=_read_no_empty_user -_read_no_empty_user () -{ - $read_function_no_empty_user - if [ "${user}" = "" ]; then - exit 0 - fi +_read_no_empty_user () { + $read_function_no_empty_user + if test -z "${user}"; then + exit 0 + fi } - |
