fixed string cmp
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
function ssm_tunnel --description 'access private AWS ressources via Bastion Host'
|
||||
|
||||
if test (count $argv) -lt 2
|
||||
echo "Provide an Host:Port Mapping & an Local Port"
|
||||
return
|
||||
end
|
||||
if test (count $argv) -lt 2
|
||||
echo "Provide an Host:Port Mapping & an Local Port"
|
||||
return
|
||||
end
|
||||
|
||||
if [ $env != "ops" ]
|
||||
echo "Switch to OPS ENV"
|
||||
return
|
||||
end
|
||||
if [ "$env" != "ops" ]
|
||||
echo "Switch to OPS ENV first"
|
||||
return
|
||||
end
|
||||
|
||||
# Get bastion host ID using it's name
|
||||
set INSTANCE_ID (aws ec2 describe-instances \
|
||||
|
||||
Reference in New Issue
Block a user