Skip to content

Instantly share code, notes, and snippets.

@wmichi
Last active February 14, 2019 05:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wmichi/5e0e9b7b9ef2f0a33f570c1ce336bae8 to your computer and use it in GitHub Desktop.
Save wmichi/5e0e9b7b9ef2f0a33f570c1ce336bae8 to your computer and use it in GitHub Desktop.
# cloud ML Engine用のディレクトリを一発で作成するためのシェル
function ConfirmProjectName(){
echo "本当にカレントディレクトリに作成して良いですか? ? (y/n)"
read input
if [ $input = 'NO' ] || [ $input = 'No' ] || [ $input = 'no' ] || [ $input = 'N' ] || [ $input = 'n' ] ; then
echo "作成したいディレクトリへ移動してください"
exit
elif [ $input = 'YES' ] || [ $input = 'Yes' ] || [ $input = 'yes' ] || [ $input = 'Y' ] || [ $input = 'y' ] ; then
echo "ディレクトリを作成します。"
else
echo "入力が不正です"
ConfirmProjectName
fi
}
ConfirmProjectName
mkdir ml-engine
cd ml-engine
mkdir trainer trainer/config trainer/utils trainer/utils/execute_scripts
touch ./ml_engine_workflow.md ./setup.py trainer/README.md trainer/__init__.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment