Skip to content

Commit

Permalink
Merge pull request caarlos0-graveyard#29 from caarlos0/revert-28-sudo
Browse files Browse the repository at this point in the history
Revert "deal with sudo absense (containers, for example)"
  • Loading branch information
caarlos0 authored Nov 24, 2016
2 parents 5f3e72c + 419bd75 commit a47816a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,9 @@
set -eo pipefail

linux() {
local url="https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.5/shellcheck"
if which sudo >/dev/null 2>&1; then
sudo curl -Lso /usr/bin/shellcheck "$url"
else
curl -Lso /usr/bin/shellcheck "$url"
fi
sudo curl -Lso \
/usr/bin/shellcheck \
https://github.com/caarlos0/shellcheck-docker/releases/download/v0.4.5/shellcheck
sudo chmod +x /usr/bin/shellcheck
}

Expand Down

0 comments on commit a47816a

Please sign in to comment.