mirror of https://github.com/kubernetes/kops.git
Make cmd1 populate the var for cmd2
Using `tee /dev/stderr` allows the user to still get output if they copy-pasta the first command. The other changes prepare the HZC variable so it can be used if they copy-pasta the second command.
This commit is contained in:
parent
26e1cb06bf
commit
7d6b61a645
|
@ -3,7 +3,7 @@
|
|||
- Note your hosted zone ID
|
||||
|
||||
```bash
|
||||
aws route53 list-hosted-zones | jq '.HostedZones[] | select(.Name=="subdomain.example.com.") | .Id'
|
||||
HZC=$(aws route53 list-hosted-zones | jq -r '.HostedZones[] | select(.Name=="subdomain.example.com.") | .Id' | tee /dev/stderr)
|
||||
|
||||
```
|
||||
|
||||
|
@ -11,4 +11,4 @@ aws route53 list-hosted-zones | jq '.HostedZones[] | select(.Name=="subdomain.ex
|
|||
|
||||
```bash
|
||||
aws route53 get-hosted-zone --id $HZC | jq .DelegationSet.NameServers
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue