diff --git a/bin/git-init.sh b/bin/git-init.sh index 3792f571..958e26f7 100755 --- a/bin/git-init.sh +++ b/bin/git-init.sh @@ -1,11 +1,11 @@ #!/bin/bash -# check if git is initialized already if [ -d .git ]; then - echo "Git is already initialized" exit 0 fi -git init -git add --all . -git commit -m "Initialize project using rtCamp/theme-elementary" +{ + git init + git add --all . + git commit -m "Initialize project using rtCamp/theme-elementary" +} &> /dev/null