From 8fd67d2f3044db4757871838b73c28aa1370f419 Mon Sep 17 00:00:00 2001 From: hiroTochigi Date: Wed, 20 Sep 2023 21:57:35 -0500 Subject: [PATCH] test --- .github/workflows/cloudbabbel.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cloudbabbel.yml b/.github/workflows/cloudbabbel.yml index 86356f14..c2d29447 100644 --- a/.github/workflows/cloudbabbel.yml +++ b/.github/workflows/cloudbabbel.yml @@ -51,9 +51,10 @@ jobs: if test ! -f "$checkSSH"; then echo "Run 'ssh-keygen' first, with an empty passphrase for no passphrase. Missing ssh key." && exit 1 fi + echo $checkSSH if [[ -f $keyPath/$publickey ]] then - aws ec2 import-key-pair --key-name "$keyname" --public-key-material fileb://$checkSSH + sudo aws ec2 import-key-pair --key-name "$keyname" --public-key-material fileb://$checkSSH else echo 'ssh key pair ($keyPath/$publickey) do not exist $keyPath/$publickey' echo 'Please generate the ssh key by the commad "ssh-keygen -t rsa"'