]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
bootstrap: Don't auto-install on Mac 1726/head
authorZack Cerza <zack@redhat.com>
Fri, 18 Mar 2022 22:29:03 +0000 (16:29 -0600)
committerZack Cerza <zack@redhat.com>
Mon, 21 Mar 2022 16:08:15 +0000 (10:08 -0600)
Signed-off-by: Zack Cerza <zack@redhat.com>
bootstrap

index 3cbde9a80088fb56924622794d10925e69716b3e..3d7f4a6250edddbacfd1735f943f428dd2044e5f 100755 (executable)
--- a/bootstrap
+++ b/bootstrap
@@ -131,7 +131,14 @@ Darwin)
         if brew list $keg >/dev/null 2>&1; then
             echo "Found $keg"
         else
-            brew install $keg
+            if [ "$install" = true ]; then
+                brew install $keg
+            else
+                missing="${missing:+$missing }$keg"
+                echo "Please install missing packages or run './bootstrap install':"
+                echo "brew install $missing"
+                exit 1
+            fi
         fi
     done
     ;;