shell用 shell script 检查命令是否存在October 13, 2020if ! type gem > /dev/null; then echo 'gem command not found.' fi