Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://install.direct/go.sh 脚本在 CentOS 里面 [[ 的判断问题 #1025

Closed
hiboyhiboy opened this issue Apr 7, 2018 · 1 comment
Closed

Comments

@hiboyhiboy
Copy link

hiboyhiboy commented Apr 7, 2018

测试几个CentOS的都是这样

rpm -q centos-release
    if [[ -n `command -v apt-get` ]];then
        CMD_INSTALL="apt-get -y -qq install"
        CMD_UPDATE="apt-get -qq update"
    elif [[ -n `command -v yum` ]]; then
        CMD_INSTALL="yum -y -q install"
        CMD_UPDATE="yum -q makecache"
    else
        return 1
    fi
    return 0

echo $CMD_INSTALL
echo $CMD_UPDATE

2018-4-7

@DarienRaymond
Copy link
Contributor

DarienRaymond commented Apr 7, 2018

谢谢指出,已 merge #1024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants