support older bash versions - resolves #116

This commit is contained in:
Defunct 2016-10-27 19:29:19 +00:00
parent 1dc6e1a0fa
commit 74b9f0a15a

13
algo
View File

@ -103,9 +103,10 @@ Enter your aws_secret_key (http://docs.aws.amazon.com/general/latest/gr/managing
Note: Make sure to use either your root key (recommended) or an IAM user with an acceptable policy attached
[ABCD...]: " -rs aws_secret_key
read -e -p "
Enter the local path to your SSH public key:
: " -i "~/.ssh/id_rsa.pub" -r ssh_public_key
read -p "
Enter the local path to your SSH public key (~/.ssh/id_rsa.pub): " -r ssh_public_key_file
ssh_public_key=${ssh_public_key_file:-$HOME/.ssh/id_rsa.pub}
read -p "
Name the vpn server:
@ -154,9 +155,9 @@ gce () {
Enter the local path to your credentials JSON file (https://support.google.com/cloud/answer/6158849?hl=en&ref_topic=6262490#serviceaccounts):
: " -r credentials_file
read -e -p "
Enter the local path to your SSH public key:
: " -i "~/.ssh/id_rsa.pub" -r ssh_public_key
read -p "
Enter the local path to your SSH public key (~/.ssh/id_rsa.pub): " -r ssh_public_key
ssh_public_key=${ssh_public_key_file:-$HOME/.ssh/id_rsa.pub}
read -p "
Name the vpn server: