summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorChristian Rößler2013-08-21 15:38:49 +0200
committerChristian Rößler2013-08-21 15:38:49 +0200
commit162ec39050129361b77837ee1cabaf78595bdf40 (patch)
treea8cac0a7e8081c5a96cd888babf81f098a22f2a1 /remote/setup_target
parent[system.inc] Two new variables for system description / information: (diff)
downloadtm-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-xremote/setup_target3
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"