shell 中的command命令 检测命令是否存在

今天在一个shell脚本中发现了一句command -v curl shell curl_check () { echo "Checking for curl..." if command -v curl > /dev/null; then echo "Detected curl..." else echo "Installing curl..." yum in
相关文章
相关标签/搜索