Last active
February 14, 2019 05:49
-
-
Save wmichi/5e0e9b7b9ef2f0a33f570c1ce336bae8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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