diff --git a/.setup_new_env.sh b/.setup_new_env.sh index 1ce4ac8..e48f820 100755 --- a/.setup_new_env.sh +++ b/.setup_new_env.sh @@ -1,15 +1,13 @@ #!/bin/bash -set -e - function main { mv -f .* $HOME mv -f bin $HOME cd $HOME - git update --init --recursive + git submodule update --init --recursive } -read -p "This will overwrite files in $HOME. Type 'yes' to confirm." confirm +read -p "This will overwrite files in $HOME. Type 'yes' to confirm: " confirm if [ "$confirm" == "yes" ]; then main; fi