ShellCheck fixes p2

This commit is contained in:
Ronald van Zantvoort 2017-03-09 15:43:25 +01:00
parent 2103dd64ec
commit 83b16e162f

View file

@ -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