batipanel 0.4.40 → 0.4.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/VERSION +1 -1
- package/package.json +1 -1
- package/scripts/install/tools.sh +11 -8
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.42
|
package/package.json
CHANGED
package/scripts/install/tools.sh
CHANGED
|
@@ -33,20 +33,23 @@ install_required_tools() {
|
|
|
33
33
|
if [ "$OS" = "Darwin" ] && ! command -v brew &>/dev/null; then
|
|
34
34
|
echo ""
|
|
35
35
|
echo " Homebrew is required on macOS for installing tools (tmux, etc.)"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
local _brew_answer="y"
|
|
37
|
+
if [ -z "${npm_lifecycle_event:-}" ]; then
|
|
38
|
+
# interactive: ask user
|
|
39
|
+
printf " Install Homebrew now? [Y/n] "
|
|
40
|
+
if [ -t 0 ]; then
|
|
41
|
+
read -r _brew_answer
|
|
42
|
+
else
|
|
43
|
+
read -r _brew_answer < /dev/tty 2>/dev/null || _brew_answer="y"
|
|
44
|
+
fi
|
|
42
45
|
fi
|
|
43
46
|
case "$_brew_answer" in
|
|
44
47
|
[nN]*)
|
|
45
48
|
echo " Skipped. Install Homebrew manually: https://brew.sh"
|
|
46
49
|
;;
|
|
47
50
|
*)
|
|
48
|
-
echo " Installing Homebrew..."
|
|
49
|
-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
51
|
+
echo " Installing Homebrew (this may take 1-2 minutes)..."
|
|
52
|
+
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
50
53
|
# add brew to PATH for this session
|
|
51
54
|
if [ -f /opt/homebrew/bin/brew ]; then
|
|
52
55
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|