diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2007-03-08 20:41:09 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2007-03-08 20:41:09 +0000 |
commit | 8bd9997e6d8028b76db17bcf2a617bfbbe2be29d (patch) | |
tree | 3a75ddc1a5aba2de689d7b05268e77973ab76b7e /app-admin/superadduser/files | |
parent | x86 stable wrt bug 169782 (diff) | |
download | historical-8bd9997e6d8028b76db17bcf2a617bfbbe2be29d.tar.gz historical-8bd9997e6d8028b76db17bcf2a617bfbbe2be29d.tar.bz2 historical-8bd9997e6d8028b76db17bcf2a617bfbbe2be29d.zip |
Fixing a couple places where I was a bit overzealous in my changes. Thanks to Marcus D. Hanwell <cryos@gentoo.org> for pointing it out.
Package-Manager: portage-2.1.2.1
Diffstat (limited to 'app-admin/superadduser/files')
-rw-r--r-- | app-admin/superadduser/files/1.0.9/superadduser | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app-admin/superadduser/files/1.0.9/superadduser b/app-admin/superadduser/files/1.0.9/superadduser index d722d0948fc1..dd5e3158ddad 100644 --- a/app-admin/superadduser/files/1.0.9/superadduser +++ b/app-admin/superadduser/files/1.0.9/superadduser @@ -132,7 +132,7 @@ function display () { goose="$(echo $2 | cut -d ' ' -f 2-)" # lop off the prefixed argument useradd needs echo -n "$1 " # If it's null then display the 'other' information - if [[ -z "$goose" -a ! -z "$3" ]]; then + if [ -z "$goose" -a ! -z "$3" ]; then echo "$3" else echo "$goose" @@ -147,7 +147,7 @@ function check_group () { local uid_not_named="" uid_not_num="" grep -v "$^" $gfile | awk -F: '{print $1}' | grep "^${group}$" >/dev/null 2>&1 || uid_not_named=yes grep -v "$^" $gfile | awk -F: '{print $3}' | grep "^${group}$" >/dev/null 2>&1 || uid_not_num=yes - if [[ ! -z "$uid_not_named" -a ! -z "$uid_not_num" ]]; then + if [ ! -z "$uid_not_named" -a ! -z "$uid_not_num" ]; then echo "- Group '$group' does not exist" got_error=yes fi |