mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
ShellCheck fixes p2
This commit is contained in:
parent
2103dd64ec
commit
83b16e162f
1 changed files with 3 additions and 4 deletions
|
@ -4385,11 +4385,10 @@ install_amazon_linux_ami_deps() {
|
|||
_USEAWS=$BS_FALSE
|
||||
|
||||
repo_rev="$(echo "${GIT_REV:-$STABLE_REV}" | sed 's|.*\/||g')"
|
||||
# shellcheck disable=SC2091
|
||||
if $(echo "$repo_rev" | egrep -q '^(latest|2016\.11)$'); then
|
||||
|
||||
if echo "$repo_rev" | egrep -q '^(latest|2016\.11)$'; then
|
||||
_USEAWS=$BS_TRUE
|
||||
# shellcheck disable=SC2091
|
||||
elif $(echo "$repo_rev" | egrep -q '^[0-9]+$') && [ $(echo "$repo_rev" | cut -c1-4) -gt 2016 ]; then
|
||||
elif echo "$repo_rev" | egrep -q '^[0-9]+$' && [ "$(echo "$repo_rev" | cut -c1-4)" -gt 2016 ]; then
|
||||
_USEAWS=$BS_TRUE
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue