mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Update brew before installing powershell in installpsh-osx.sh (#4506)
This commit is contained in:
1 parent
649ff285ee
commit
df379f29c7
1 file changed
+8
@@ -131,9 +131,17 @@ if [[ ! -d $(brew --prefix cask) ]]; then
|
||||
echo "Installing cask..."
|
||||
if ! brew tap caskroom/cask >/dev/null; then
|
||||
echo "ERROR: Cask failed to install! Cannot install powershell..." >&2
|
||||
exit 2
|
||||
fi
|
||||
fi
|
||||
|
||||
# Suppress output, it's very noisy on travis-ci
|
||||
echo "Refreshing Homebrew cache..."
|
||||
if ! brew update >/dev/null; then
|
||||
echo "ERROR: Refreshing Homebrew cache failed..." >&2
|
||||
exit 2
|
||||
fi
|
||||
|
||||
if ! hash powershell 2>/dev/null; then
|
||||
echo "Installing PowerShell..."
|
||||
if ! brew cask install powershell; then
|
||||
|
||||
Reference in new issue
Block a user