Skip to content

Commit 2bdb24f

Browse files
committed
aws-ssm-ssh-proxy-command.sh : the condition if [[ $instance_name =~ $REGION_SEPARATOR ]] on line 25 doesn't work in the old sh. bash is required to work
aws-ssm-ssh-proxy-command.ps1 : instance matching regexp name
1 parent 4d332c4 commit 2bdb24f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aws-ssm-ssh-proxy-command.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if ($splitted_instance.Length -gt 1) {
3838
$env:AWS_REGION = $splitted_instance[1]
3939
}
4040

41-
if ($instance_name -match $ec2InstanceIdPattern) {
41+
if ($instance_name -match $INSTANCE_ID_PATTERN) {
4242
$instance_id = $instance_name
4343
} else {
4444
$instance_id = Get-InstanceId -instanceName $instance_name

aws-ssm-ssh-proxy-command.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env sh
1+
#!/usr/bin/env bash
22
set -eu
33

44
################################################################################

0 commit comments

Comments
 (0)