Selaa lähdekoodia

Merge pull request #262 from infosiftr/better-clone-output

Clean up the clone/fetch output
yosifkit 11 vuotta sitten
vanhempi
sitoutus
fffdd61677
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      bashbrew/build.sh

+ 2 - 2
bashbrew/build.sh

@@ -178,15 +178,15 @@ for repoTag in "${repos[@]}"; do
 		else
 			if [ ! -d "$gitRepo" ]; then
 				mkdir -p "$(dirname "$gitRepo")"
-				echo "Cloning '$gitUrl' into '$gitRepo' ..."
+				echo "Cloning $repo ($gitUrl) ..."
 				git clone -q "$gitUrl" "$gitRepo"
-				echo 'Cloned successfully!'
 			else
 				# if we don't have the "ref" specified, "git fetch" in the hopes that we get it
 				if ! (
 					cd "$gitRepo"
 					git rev-parse --verify "${gitRef}^{commit}" &> /dev/null
 				); then
+					echo "Fetching $repo ($gitUrl) ..."
 					(
 						cd "$gitRepo"
 						git fetch -q --all