On Thu, Nov 05, 2020 at 10:15:06AM +0800, Wu Fengguang wrote:
- if [ -x "$(command -v apk)" ]
- then
=> 'if ...; then' 是不是会好看些?
Yes, Thanks.
Thanks, Zhang Yuhang
apk add install -y curl
- elif [ -x "$(command -v yum)" ]
- then
yum install -y curl
- elif [ -x "$(command -v apt-get)" ]
- then
apt-get install -y curl
- fi
+else
- echo "curl has install."
+fi