2012-08-18から1日間の記事一覧

コマンドの存在を判定する

if [[ -x `which -p git` ]]; then // any codes fiwhich git >/dev/null 2>&1 で判定していたけど、\[\[ -x ]] で判定するのが一般的なようだ。