PR feedback - POSIX compliance

This commit is contained in:
Charles McLaughlin 2017-12-26 21:11:48 -08:00
parent 6eb2423d18
commit b09dd90f0a
No known key found for this signature in database
GPG key ID: 5A64CF4D9E01081D

View file

@ -4433,7 +4433,7 @@ install_amazon_linux_ami_deps() {
repo_rev="latest"
fi
if [[ $repo_rev =~ ^archive ]]; then
if echo $repo_rev | egrep -q '^archive'; then
year=$(echo "$repo_rev" | cut -d '/' -f 2 | cut -c1-4)
else
year=$(echo "$repo_rev" | cut -c1-4)