* ask for answer on same line
This commit is contained in:
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…
Reference in New Issue
Block a user