From ecb3ae1ed2a66c0ddc5be25f6cba9fe6c0a0345a Mon Sep 17 00:00:00 2001 From: Kim Hagen Date: Fri, 29 Jan 2016 07:05:33 -0500 Subject: Refine getting the vyos version. --- scripts/install/install-functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/install/install-functions') diff --git a/scripts/install/install-functions b/scripts/install/install-functions index 0a1f5d13..720ac28a 100755 --- a/scripts/install/install-functions +++ b/scripts/install/install-functions @@ -298,7 +298,7 @@ is_union_install () # outputs the version string of the current running version. get_cur_version () { - ver=`cat /opt/vyatta/etc/version` + ver=`cat /opt/vyatta/etc/version | awk '{print $2}'` if [ -z "$ver" ]; then echo "UNKNOWN" else @@ -323,7 +323,7 @@ get_new_version () ver_file=${ver_path} if is_live_cd_boot && [ -f "$ver_file" ]; then # we are installing from a live CD boot - ver=`cat /opt/vyatta/etc/version` + ver=`cat /opt/vyatta/etc/version | awk '{print $2}'` echo $ver return fi -- cgit v1.2.3