Skip to content

Commit f7cde71

Browse files
authored
Update aws-ssm-ec2-proxy-command-start-instance.sh
1 parent ce6f891 commit f7cde71

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

aws-ssm-ec2-proxy-command-start-instance.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ then
4848
ec2_instance_id="${ec2_instance_id%%${REGION_SEPARATOR}*}"
4949
fi
5050

51-
>/dev/stderr echo "EC2 Proxy Command..."
52-
5351
STATUS=`aws ssm describe-instance-information --filters Key=InstanceIds,Values=${ec2_instance_id} --output text --query 'InstanceInformationList[0].PingStatus'`
5452
if [ $STATUS != 'Online' ]
5553
then
@@ -75,4 +73,4 @@ then
7573
fi
7674
fi
7775

78-
~/.ssh/aws-ssm-ec2-proxy-command.sh "${ec2_instance_id}" "${ssh_user}" "${ssh_port}" "${ssh_public_key_path}"
76+
exec ~/.ssh/aws-ssm-ec2-proxy-command.sh "${ec2_instance_id}" "${ssh_user}" "${ssh_port}" "${ssh_public_key_path}"

0 commit comments

Comments
 (0)