File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,39 @@ brewInstallation() {
34
34
}
35
35
brewInstallation
36
36
37
+ brewFormulaInstallation () {
38
+ APP_LIST=(" orbstack" )
39
+
40
+ for appName in " ${APP_LIST[@]} " ; do
41
+ echo " =========================== $appName ==========================="
42
+
43
+ PKG_OK=$( brew list --formula | grep " ^$appName $" )
44
+ echo " Checking for $appName : $PKG_OK "
45
+ if [ " " = " $PKG_OK " ]; then
46
+ echo " No $appName . Setting up $appName ."
47
+
48
+ while true ; do
49
+ if [[ $ACCEPT_INSTALL =~ ^[Yy]$ ]]; then
50
+ yn=" y"
51
+ else
52
+ read -r -p " Do you want to install $appName ? (Y/N) " yn
53
+ fi
54
+ case $yn in
55
+ [Yy]* )
56
+ brew install " $appName "
57
+ break
58
+ ;;
59
+ [Nn]* ) break ;;
60
+ * ) echo " Please answer yes or no." ;;
61
+ esac
62
+ done
63
+ else
64
+ echo " $appName install ok installed"
65
+ fi
66
+ echo " "
67
+ done
68
+ }
69
+
37
70
echo ' ####################################################################'
38
71
while true ; do
39
72
if [[ $ACCEPT_INSTALL =~ ^[Yy]$ ]]; then
You can’t perform that action at this time.
0 commit comments