aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2016-04-08 07:36:31 +0200
committerMathias Bynens <mathias@qiwi.be>2016-04-09 17:28:26 +0200
commit5689fa8c011b1a5428a82a981737a5e3878a0cd1 (patch)
tree4e708b2063c7dddd97ef5a55cedec4cd018dbf47
parent2661c9b223997ce3cac53f99eeeb34c74727cea8 (diff)
downloaddotfiles-5689fa8c011b1a5428a82a981737a5e3878a0cd1.tar.gz
dotfiles-5689fa8c011b1a5428a82a981737a5e3878a0cd1.tar.bz2
dotfiles-5689fa8c011b1a5428a82a981737a5e3878a0cd1.zip
brew.sh: Remove useless use of `sudo`
Thanks to @jonnybarnes for spotting this. Closes #647.
-rwxr-xr-xbrew.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/brew.sh b/brew.sh
index d6cdbd8..fd807d9 100755
--- a/brew.sh
+++ b/brew.sh
@@ -2,12 +2,6 @@
# Install command-line tools using Homebrew.
-# Ask for the administrator password upfront.
-sudo -v
-
-# Keep-alive: update existing `sudo` time stamp until the script has finished.
-while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
-
# Make sure we’re using the latest Homebrew.
brew update
@@ -17,7 +11,7 @@ brew upgrade --all
# Install GNU core utilities (those that come with OS X are outdated).
# Don’t forget to add `$(brew --prefix coreutils)/libexec/gnubin` to `$PATH`.
brew install coreutils
-sudo ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum
+ln -s /usr/local/bin/gsha256sum /usr/local/bin/sha256sum
# Install some other useful utilities like `sponge`.
brew install moreutils