Revision 1951
Added by Aaron Marcuse-Kubitza over 12 years ago
env_password | ||
---|---|---|
33 | 33 |
}|tee ${ccTty:+/dev/tty} >&2 |
34 | 34 |
fi |
35 | 35 |
|
36 |
test -z "$store" && exit 1 # just direct user how to store password
|
|
36 |
test -z "$store" && return 1 # just direct user how to store password
|
|
37 | 37 |
read -s -p "Enter $desc: "; echo |
38 | 38 |
export "$1"="$REPLY" |
39 | 39 |
fi |
Also available in: Unified diff
env_password: return instead of exit if password not yet stored, in case user is running it from a shell without the initial "-" argument. (This would be the case if the user is just testing out the script, instead of using a command that env_password directs them to run.)