mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
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
This commit is contained in:
parent
066daea949
commit
ca278f2a11
1 changed files with 1 additions and 1 deletions
|
@ -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/^#.*$//'
|
||||
|
|
Loading…
Add table
Reference in a new issue