Skip to content

Commit 1caf4e9

Browse files
committed
feat: add orbstack (formula) for macOS
1 parent 26b723f commit 1caf4e9

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

macos/develop/setup.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,39 @@ brewInstallation() {
3434
}
3535
brewInstallation
3636

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+
3770
echo '####################################################################'
3871
while true; do
3972
if [[ $ACCEPT_INSTALL =~ ^[Yy]$ ]]; then

0 commit comments

Comments
 (0)