Skip to content

Commit 48bc33a

Browse files
optimize version
Optimized the system that finds the version of the current running system.
1 parent b103640 commit 48bc33a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

install/vst-install-ubuntu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ VESTA='/usr/local/vesta'
1414
memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
1515
arch=$(uname -i)
1616
os='ubuntu'
17-
release="$(lsb_release -r|awk '{print $2}')"
18-
codename="$(lsb_release -c|awk '{print $2}')"
17+
release="$(lsb_release -s -r)"
18+
codename="$(lsb_release -s -c)"
1919
vestacp="http://$CHOST/$VERSION/$release"
2020

2121
if [ "$release" = '16.04' ]; then

0 commit comments

Comments
 (0)