This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| IT --> .*IT$ | |
| UT --> .*?(?!IT)..$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # This file can be called as program | |
| # (it will output the assignment of the REGISTRY environment variable for convenience with `eval $(aws-ecr-login)`) | |
| # OR sourced in .bashrc or .zshrc | |
| # (in that case it will directy set the REGISTRY environment variable and have no output) | |
| function aws-ecr-login { | |
| if [ -z "${AWS_REGION:-}" ]; then | |
| echo "environment variable AWS_REGION required" >&2 |