* ask for answer on same line

This commit is contained in:
gdm85 2014-06-10 12:39:05 +02:00
parent de4970e14c
commit 9e50b80864
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ cd $BASENAME/../gitian-host || exit $?
if [ ! -f authorized_keys ]; then if [ ! -f authorized_keys ]; then
echo "No authorized_keys file found in $PWD" echo "No authorized_keys file found in $PWD"
if [ -f ~/.ssh/id_rsa.pub ]; then if [ -f ~/.ssh/id_rsa.pub ]; then
echo "Do you want to use ~/.ssh/id_rsa.pub? (y/n)" echo -n "Do you want to use ~/.ssh/id_rsa.pub? (y/n) "
read -r ANSWER read -r ANSWER
if [[ "$ANSWER" == "y" ]]; then if [[ "$ANSWER" == "y" ]]; then
cp -v ~/.ssh/id_rsa.pub authorized_keys || exit $? cp -v ~/.ssh/id_rsa.pub authorized_keys || exit $?

View File

@ -7,7 +7,7 @@ cd $BASENAME/../trusty-kbuilder || exit $?
if [ ! -f authorized_keys ]; then if [ ! -f authorized_keys ]; then
echo "No authorized_keys file found in $PWD" echo "No authorized_keys file found in $PWD"
if [ -f ~/.ssh/id_rsa.pub ]; then if [ -f ~/.ssh/id_rsa.pub ]; then
echo "Do you want to use ~/.ssh/id_rsa.pub? (y/n)" echo -n "Do you want to use ~/.ssh/id_rsa.pub? (y/n) "
read -r ANSWER read -r ANSWER
if [[ "$ANSWER" == "y" ]]; then if [[ "$ANSWER" == "y" ]]; then
cp -v ~/.ssh/id_rsa.pub authorized_keys || exit $? cp -v ~/.ssh/id_rsa.pub authorized_keys || exit $?