diff options
author | Jonas Smedegaard <dr@jones.dk> | 2004-04-19 20:45:06 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2004-04-19 20:45:06 +0000 |
commit | c891316bfc589d959f14a4620283fe461308cfaa (patch) | |
tree | e48e2e99cbbe7f6418746df3a1f5c52eee9e2b89 /localuserconfig | |
parent | a526c944fafb38fca498d0e2aab1857154fac42e (diff) |
Judge editing only on existing username (not password), and default to no.
Diffstat (limited to 'localuserconfig')
-rwxr-xr-x | localuserconfig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/localuserconfig b/localuserconfig index 3a8f605..82853c8 100755 --- a/localuserconfig +++ b/localuserconfig @@ -3,7 +3,7 @@ # /usr/local/bin/localuserconfig # Copyright 2004 Jonas Smedegaard <dr@jones.dk> # -# $Id: localuserconfig,v 1.6 2004-04-16 13:53:17 jonas Exp $ +# $Id: localuserconfig,v 1.7 2004-04-19 20:45:06 jonas Exp $ # # Set/change local account settings # @@ -101,12 +101,12 @@ if [ "$do_server" = "yes" ]; then server_username="$(grep '^username' $HOME/$server_userconf | awk -F= '{print $2}' | head -1 | awk '{print $1}')" server_password="$(grep '^password' $HOME/$server_userconf | awk -F= '{print $2}' | head -1 | awk '{print $1}')" fi - if [ -n "$server_username" -o -n "$server_password" ]; then + if [ -n "$server_username" ]; then server_edit="" - echo -n "Account info for $server_desc already exists. Edit (Y/n)? " + echo -n "Account info for $server_desc already exists. Edit (y/N)? " read server_overwrite case $server_overwrite in - y|Y|"") + y|Y) server_edit="1" ;; esac |