mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-17 10:10:25 +00:00
PR feedback - POSIX compliance
This commit is contained in:
parent
6eb2423d18
commit
b09dd90f0a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue