diff options
author | Kim <UnicronNL@users.noreply.github.com> | 2017-06-05 01:20:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-05 01:20:50 +0200 |
commit | d133ba0fcdda4bb1c4a7653e2b275a2a3ec4434b (patch) | |
tree | b67667168d164906b4fa32b0e961bdbc0eee1720 /scripts/install | |
parent | dcf69cdf83dd215c66bed0a22166619e78ff1b67 (diff) | |
download | vyatta-cfg-system-d133ba0fcdda4bb1c4a7653e2b275a2a3ec4434b.tar.gz vyatta-cfg-system-d133ba0fcdda4bb1c4a7653e2b275a2a3ec4434b.zip |
remove trailing space from version (if there is any)
Diffstat (limited to 'scripts/install')
-rwxr-xr-x | scripts/install/install-image-existing | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/install/install-image-existing b/scripts/install/install-image-existing index 62e73882..f38e3701 100755 --- a/scripts/install/install-image-existing +++ b/scripts/install/install-image-existing @@ -77,7 +77,7 @@ if [ -z "$CURVER" ]; then fi # get new version string. this is from the squashfs image. -NEWVER=`cat ${CD_SQUASH_ROOT}/opt/vyatta/etc/version | grep "Version:" | awk '{print $2,$3}' | sed 's/ /-/g'` +NEWVER=`cat ${CD_SQUASH_ROOT}/opt/vyatta/etc/version | grep "Version:" | awk '{print $2,$3}' | sed 's/[[:space:]]*$//' | sed 's/ /-/g'` NEWNAME=$NEWVER echo -n "What would you like to name this image? [$NEWNAME]: " |