2025-01-07 【シェルスクリプト】特定のディレクトリがないときはディレクトリを作る シェルコマンド/シェルスクリプト DIR=/hoge/hoge if [ ! -d $DIR ]; then mkdir $DIR fiという感じメモqiita.com