Skip to content

Commit

Permalink
Support installing stable releases post version schema change
Browse files Browse the repository at this point in the history
  • Loading branch information
s0undt3ch committed Feb 24, 2020
1 parent 77daa32 commit a321d51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap-salt.sh
Expand Up @@ -606,7 +606,7 @@ elif [ "$ITYPE" = "stable" ]; then
if [ "$(echo "$1" | grep -E '^(latest|1\.6|1\.7|2014\.1|2014\.7|2015\.5|2015\.8|2016\.3|2016\.11|2017\.7|2018\.3|2019\.2|3000)$')" != "" ]; then
STABLE_REV="$1"
shift
elif [ "$(echo "$1" | grep -E '^(2[0-9]*\.[0-9]*\.[0-9]*|[3-9][0-9]*(\.[0-9]*)?)$')" != "" ]; then
elif [ "$(echo "$1" | grep -E '^(2[0-9]*\.[0-9]*\.[0-9]*|[3-9][0-9]{3}*(\.[0-9]*)?)$')" != "" ]; then

This comment has been minimized.

Copy link
@sblaisot

sblaisot Mar 11, 2020

Contributor

hummm, why * after {3}? this would allow version 3000000000 (with many 3-digits number concatenated)

if [ "$(uname)" = "Darwin" ]; then
STABLE_REV="$1"
else
Expand Down

0 comments on commit a321d51

Please sign in to comment.