From 9e50b808647fbfffca9ccfa9de7a7192b0048d63 Mon Sep 17 00:00:00 2001 From: gdm85 Date: Tue, 10 Jun 2014 12:39:05 +0200 Subject: [PATCH] * ask for answer on same line --- docker/scripts/create-gitian-host.sh | 2 +- docker/scripts/create-trusty-kbuilder.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/scripts/create-gitian-host.sh b/docker/scripts/create-gitian-host.sh index 6f6ea8f..bba28b1 100755 --- a/docker/scripts/create-gitian-host.sh +++ b/docker/scripts/create-gitian-host.sh @@ -7,7 +7,7 @@ cd $BASENAME/../gitian-host || exit $? if [ ! -f authorized_keys ]; then echo "No authorized_keys file found in $PWD" 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 if [[ "$ANSWER" == "y" ]]; then cp -v ~/.ssh/id_rsa.pub authorized_keys || exit $? diff --git a/docker/scripts/create-trusty-kbuilder.sh b/docker/scripts/create-trusty-kbuilder.sh index 655731b..8238e59 100755 --- a/docker/scripts/create-trusty-kbuilder.sh +++ b/docker/scripts/create-trusty-kbuilder.sh @@ -7,7 +7,7 @@ cd $BASENAME/../trusty-kbuilder || exit $? if [ ! -f authorized_keys ]; then echo "No authorized_keys file found in $PWD" 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 if [[ "$ANSWER" == "y" ]]; then cp -v ~/.ssh/id_rsa.pub authorized_keys || exit $?