--- 2.HTTPアクセスコマンド(wgetまたはcurl) if type curl >/dev/null 2>&1; then CMD_CURL='curl' elif type wget >/dev/null 2>&1; then CMD_WGET='wget' else error_exit 1 'No HTTP-GET/POST command found.' fi : : curlまたはwgetコマンド 両方の存在を確認。 どちらかがあれば、続行 するようにしている。 Web APIアクセスコマンド 存在確認ルーチン