From 9a4002951641d2d475474182e4d15ca549be1160 Mon Sep 17 00:00:00 2001 From: thelovekesh Date: Fri, 26 Aug 2022 18:43:27 +0530 Subject: [PATCH] Update script to redirect stdout to /dev/null --- bin/git-init.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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