diff --git a/git-get-repo-and-build.sh b/git-get-repo-and-build.sh index 92a2582..9eeb54a 100755 --- a/git-get-repo-and-build.sh +++ b/git-get-repo-and-build.sh @@ -82,9 +82,9 @@ chmod +x $GITFiles/common/make-archive.sh # See if repo exits in git RESPONSE=$(curl $curlsilent -o /dev/null -w "%{http_code}" "$GITEAHOST/api/v1/repos/$ORG_NAME/$REPO_NAME") if [ "$RESPONSE" == "200" ]; then - echo "Repository for $1/$2 exists!" + if [ $DEBUG ] ; then echo "Repository for $1/$2 exists!" ; fi else - echo "Repository for $1/$2 does not exist" + if [ $DEBUG ] ; then echo "Repository for $1/$2 does not exist" ; fi logname="git-cvs2git-create-$2-$1-$(date +'%FT%H%M').log" while true; do read -p "Do you wish to run git-cvs2git?(y/n) " yn @@ -97,7 +97,7 @@ else # And check it is now there RESPONSE=$(curl $curlsilent -o /dev/null -w "%{http_code}" "$GITEAHOST/api/v1/repos/$ORG_NAME/$REPO_NAME") if [ "$RESPONSE" == "200" ]; then - echo "Repository for $1/$2 created sucessfully!" + if [ $DEBUG ] ; then echo "Repository for $1/$2 created sucessfully!" ; fi else echo "git-cvs2git.sh was unable to create $1/$2 sucessfully" exit 1 @@ -110,7 +110,7 @@ echo $GITFiles if [[ -d $REPO_NAME ]] ; then # Should delete everything.... cd $GITFiles/$REPO_NAME - echo "Deleting all files in $GITFiles/$REPO_NAME" + if [ $DEBUG ] ; then echo "Deleting all files in $GITFiles/$REPO_NAME" ; fi rm -rf "$REPO_NAME" fi cd $GITFiles @@ -126,7 +126,7 @@ cd $GITFiles/$REPO_NAME # and run mockbuild logname="mockbuild-$2-$1-$(date +'%FT%H%M').log" if make mockbuild 2>&1 > $logname ; then - echo "Looks like mockbuild worked" + echo "Looks like mockbuild worked for $1/$2" echo "$(date +'%FT%H%M') Mockbuild worked for $1/$2 " >> $GITFiles/mockbuilds.log else echo "Mockbuild failed"