From 162ec39050129361b77837ee1cabaf78595bdf40 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Wed, 21 Aug 2013 15:38:49 +0200 Subject: [setup-target] New Var SYS_VERSION (version number of a distribution) --- remote/setup_target | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" -- cgit v1.2.3-55-g7522