optimize version

Optimized the system that finds the version of the current running system.
This commit is contained in:
Elliot Huffman 2016-12-14 12:42:14 -05:00 committed by GitHub
commit 48bc33ad87

View file

@ -14,8 +14,8 @@ VESTA='/usr/local/vesta'
memory=$(grep 'MemTotal' /proc/meminfo |tr ' ' '\n' |grep [0-9])
arch=$(uname -i)
os='ubuntu'
release="$(lsb_release -r|awk '{print $2}')"
codename="$(lsb_release -c|awk '{print $2}')"
release="$(lsb_release -s -r)"
codename="$(lsb_release -s -c)"
vestacp="http://$CHOST/$VERSION/$release"
if [ "$release" = '16.04' ]; then