Skip to content

Commit

Permalink
camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Jul 25, 2024
1 parent a9d1637 commit 83b4730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/aws/up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ instanceName=luftballon
checkSSH=~/.ssh/$publickey

checkKeyName() {
key_pairs=($(aws ec2 describe-key-pairs --query "KeyPairs[*].KeyName" --output text))
keyPairs=($(aws ec2 describe-key-pairs --query "KeyPairs[*].KeyName" --output text))

for key in "${key_pairs[@]}"
for key in "${keyPairs[@]}"
do
if [ "$key" == "$keyname" ]; then
echo "Error: Key Pair '$key' matches the specified keyName '$keyName'. Exiting..."
Expand Down

0 comments on commit 83b4730

Please sign in to comment.