* ask for answer on same line

master
gdm85 10 years ago
parent de4970e14c
commit 9e50b80864

@ -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 $?

@ -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 $?

Loading…
Cancel
Save