From ca278f2a11e2171dababd2efbf5771c2f96a8a72 Mon Sep 17 00:00:00 2001 From: ffa Date: Thu, 18 Oct 2012 19:54:05 -0700 Subject: [PATCH] remove revision number from distribution version Remove the distribution version revision number becuase it * is not a large enough change to effect installs * needs the "." separator, which is currently removed, in the version number to be distinguished * is not currently implemented for Sun and BSD installs --- bootstrap-salt-minion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-salt-minion.sh b/bootstrap-salt-minion.sh index eaa3677..ea509d4 100755 --- a/bootstrap-salt-minion.sh +++ b/bootstrap-salt-minion.sh @@ -181,7 +181,7 @@ __gather_linux_system_info() { v=$( (grep VERSION /etc/${rsource}; cat /etc/${rsource}) | grep '[0-9]' | sed -e 'q' |\ sed -e 's/^/#/' \ - -e 's/^#[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\)\(\.[0-9][0-9]*\).*$/\1[\2]/' \ + -e 's/^#[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\)\(\.[0-9][0-9]*\).*$/\1/' \ -e 's/^#[^0-9]*\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/' \ -e 's/^#[^0-9]*\([0-9][0-9]*\).*$/\1/' \ -e 's/^#.*$//'