|
17 | 17 | # CREATED: 10/15/2012 09:49:37 PM WEST |
18 | 18 | #====================================================================================================================== |
19 | 19 | set -o nounset # Treat unset variables as an error |
20 | | -__ScriptVersion="2014.09.09" |
| 20 | +__ScriptVersion="2014.09.24" |
21 | 21 | __ScriptName="bootstrap-salt.sh" |
22 | 22 |
|
23 | 23 | #====================================================================================================================== |
@@ -1157,7 +1157,7 @@ __git_clone_and_checkout() { |
1157 | 1157 | fi |
1158 | 1158 | else |
1159 | 1159 | __SHALLOW_CLONE="${BS_FALSE}" |
1160 | | - if [ "$(echo "$GIT_REV" | sed 's/^.*\(v[[:digit:]]\{1,4\}\.[[:digit:]]\{1,2\}\.[[:digit:]]\{1,2\}\).*$/MATCH/')" = "MATCH" ]; then |
| 1160 | + if [ "$(echo "$GIT_REV" | sed 's/^.*\(v[[:digit:]]\{1,4\}\.[[:digit:]]\{1,2\}\.[[:digit:]]\{1,2\}\)\?.*$/MATCH/')" = "MATCH" ]; then |
1161 | 1161 | echoinfo "Git revision matches a Salt version tag" |
1162 | 1162 | # Let's try shallow cloning to speed up. |
1163 | 1163 | # Test for "--single-branch" option introduced in git 1.7.10, the minimal version of git where the shallow |
@@ -2517,7 +2517,7 @@ __install_epel_repository() { |
2517 | 2517 | elif [ "$DISTRO_MAJOR_VERSION" -eq 6 ]; then |
2518 | 2518 | rpm -Uvh --force "http://download.fedoraproject.org/pub/epel/6/${EPEL_ARCH}/epel-release-6-8.noarch.rpm" || return 1 |
2519 | 2519 | elif [ "$DISTRO_MAJOR_VERSION" -eq 7 ]; then |
2520 | | - rpm -Uvh --force "http://download.fedoraproject.org/pub/epel/7/${EPEL_ARCH}/e/epel-release-7-1.noarch.rpm" || return 1 |
| 2520 | + rpm -Uvh --force "http://download.fedoraproject.org/pub/epel/7/${EPEL_ARCH}/e/epel-release-7-2.noarch.rpm" || return 1 |
2521 | 2521 | else |
2522 | 2522 | echoerror "Failed add EPEL repository support." |
2523 | 2523 | return 1 |
|
0 commit comments