batipanel 0.4.40 → 0.4.41
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 +10 -7
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.41
|
package/package.json
CHANGED
package/scripts/install/tools.sh
CHANGED
|
@@ -33,12 +33,15 @@ 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]*)
|
|
@@ -46,7 +49,7 @@ install_required_tools() {
|
|
|
46
49
|
;;
|
|
47
50
|
*)
|
|
48
51
|
echo " Installing Homebrew..."
|
|
49
|
-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
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)"
|