Skip to content

Commit 14f6bc1

Browse files
committed
fix(brew-bump): check that git clone worked
1 parent a066d25 commit 14f6bc1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ci/steps/brew-bump.sh

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ main() {
2828
echo "Cloning cdrci/homebrew-core"
2929
git clone https://github.com/cdrci/homebrew-core.git
3030

31+
# Make sure the git clone step is successful
32+
if [[ $(directory_exists "homebrew-core") -eq 1 ]]; then
33+
echo "git clone failed. Cannot find homebrew-core directory."
34+
ls -la
35+
exit 1
36+
fi
37+
3138
echo "Changing into homebrew-core directory"
3239
cd homebrew-core && pwd
3340

0 commit comments

Comments
 (0)