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