batipanel 0.4.42 → 0.4.44
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 +19 -10
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.44
|
package/package.json
CHANGED
package/scripts/install/tools.sh
CHANGED
|
@@ -33,15 +33,22 @@ 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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
if [ -n "${npm_lifecycle_event:-}" ]; then
|
|
37
|
+
# npm/npx: can't install brew (needs sudo password)
|
|
38
|
+
echo ""
|
|
39
|
+
echo " Run these two commands to install:"
|
|
40
|
+
echo ""
|
|
41
|
+
echo " /bin/bash -c \"\$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)\""
|
|
42
|
+
echo " curl -fsSL batipanel.com/install.sh | bash"
|
|
43
|
+
echo ""
|
|
44
|
+
exit 1
|
|
45
|
+
fi
|
|
46
|
+
printf " Install Homebrew now? [Y/n] "
|
|
47
|
+
local _brew_answer=""
|
|
48
|
+
if [ -t 0 ]; then
|
|
49
|
+
read -r _brew_answer
|
|
50
|
+
else
|
|
51
|
+
read -r _brew_answer < /dev/tty 2>/dev/null || _brew_answer="y"
|
|
45
52
|
fi
|
|
46
53
|
case "$_brew_answer" in
|
|
47
54
|
[nN]*)
|
|
@@ -49,7 +56,9 @@ install_required_tools() {
|
|
|
49
56
|
;;
|
|
50
57
|
*)
|
|
51
58
|
echo " Installing Homebrew (this may take 1-2 minutes)..."
|
|
52
|
-
|
|
59
|
+
echo " You may need to enter your macOS password below."
|
|
60
|
+
echo ""
|
|
61
|
+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
53
62
|
# add brew to PATH for this session
|
|
54
63
|
if [ -f /opt/homebrew/bin/brew ]; then
|
|
55
64
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|