diff options
author | Christian Rößler | 2013-08-21 15:38:49 +0200 |
---|---|---|
committer | Christian Rößler | 2013-08-21 15:38:49 +0200 |
commit | 162ec39050129361b77837ee1cabaf78595bdf40 (patch) | |
tree | a8cac0a7e8081c5a96cd888babf81f098a22f2a1 /remote/setup_target | |
parent | [system.inc] Two new variables for system description / information: (diff) | |
download | tm-scripts-162ec39050129361b77837ee1cabaf78595bdf40.tar.gz tm-scripts-162ec39050129361b77837ee1cabaf78595bdf40.tar.xz tm-scripts-162ec39050129361b77837ee1cabaf78595bdf40.zip |
[setup-target] New Var SYS_VERSION (version number of a distribution)
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-x | remote/setup_target | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/remote/setup_target b/remote/setup_target index 1b857eda..281f91bd 100755 --- a/remote/setup_target +++ b/remote/setup_target @@ -77,7 +77,8 @@ initial_checks () { ;; esac # Get version - we mangle this quite a bit. first make sure it has no spaces, then split version at period (.), underscore (_) and dash (-) - local VERSION=$(lsb_release -rs | tolower | sed -r 's/\s//g;s/[\._]/ /g;s/-//g') + SYS_VERSION=$(lsb_release -rs | tolower) + local VERSION=$(echo $SYS_VERSION | sed -r 's/\s//g;s/[\._]/ /g;s/-//g') local STRTMP="" PRINT_SYS_VERSIONS="*.conf.$SYS_DISTRIBUTION" SYS_VERSIONS="$SYS_DISTRIBUTION" |