Skip to content

Commit

Permalink
[upgrade] upgradable version globbing
Browse files Browse the repository at this point in the history
Accept bash globbing to describe versions from which upgrade is
supported, for that release.

Signed-off-by: Eric Chanudet <[email protected]>

OXT-380
  • Loading branch information
Eric Chanudet committed Sep 28, 2015
1 parent 0a6f5c6 commit 9b2b5a9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions part2/stages/Find-existing-install
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,7 @@ is_upgradeable_release()
RELEASE="$1"
for CHECK in ${UPGRADEABLE_RELEASES} ; do

[ "${CHECK}" != "*" ] || return 0

if [ "${RELEASE}" = "${CHECK}" ] ; then
if [ -z "${RELEASE%%${CHECK}}" ] ; then
echo "Upgrade allowed from detected release: ${RELEASE}" >&2
return 0
fi
Expand Down

0 comments on commit 9b2b5a9

Please sign in to comment.