INNER CODE UNIT · Vim script

get_alpine_version

chxuan/vimplus · install.sh:152

function get_alpine_version()
{
    version=$(cat /etc/os-release | grep 'VERSION_ID' | awk -F '=' '{print $2}')
    
    echo $version
}

# 获取centos版本
function get_centos_version()
{
    version=`cat /etc/redhat-release | awk '{print $4}' | awk -F . '{printf "%s",$1}'`
    echo $version
}

# 判断是否是macos10.14版本
function is_macos1014()
{
    product_version=$(sw_vers | grep ProductVersion)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…