Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32159460
install_homebrew_macos.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
396 B
Referenced Files
None
Subscribers
None
install_homebrew_macos.sh
View Options
#!/usr/bin/env bash
set
-euo
pipefail
# Currently, this script only works on macOS as it assumes homebrew usage
if
!
[[
"
$OSTYPE
"
==
'darwin'
*
]]
;
then
echo
"This script is only meant to be ran on macOS"
>
&
2
exit
1
fi
if
!
command
-v
brew
>/dev/null
;
then
echo
"Installing Homebrew..."
>
&
2
bash
-c
"
$(
curl
-fsSL
https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh
)
"
fi
File Metadata
Details
Attached
Mime Type
text/x-shellscript
Expires
Sun, Dec 7, 4:32 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5234573
Default Alt Text
install_homebrew_macos.sh (396 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment