projects
/
monkeysphere.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
make sure all prompt messages are going to stderr
[monkeysphere.git]
/
src
/
share
/
mh
/
add_hostname
diff --git
a/src/share/mh/add_hostname
b/src/share/mh/add_hostname
index ec741ee5a114f8eb99cfc3e99f15d6a202c91a18..b08d688a91f1230f983439259c2aaab9aabf4128 100644
(file)
--- a/
src/share/mh/add_hostname
+++ b/
src/share/mh/add_hostname
@@
-32,11
+32,9
@@
find_host_userid > /dev/null && \
failure "Host userID '$userID' already exists."
if [ "$PROMPT" = "true" ] ; then
failure "Host userID '$userID' already exists."
if [ "$PROMPT" = "true" ] ; then
- cat <<EOF
-The following user ID will be added to the host key:
+ read -p "The following user ID will be added to the host key:
$userID
$userID
-EOF
- read -p "Are you sure you would like to add this user ID? (Y/n) " OK; OK=${OK:=Y}
+Are you sure you would like to add this user ID? (Y/n) " OK; OK=${OK:=Y}
if [ "${OK/y/Y}" != 'Y' ] ; then
failure "User ID not added."
fi
if [ "${OK/y/Y}" != 'Y' ] ; then
failure "User ID not added."
fi