Skip to content

Commit

Permalink
Remove useless cat from setup (Gallopsled#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillerDragon authored Mar 8, 2020
1 parent d2fc367 commit c46417f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -ex
# If we are a root in a Docker container and `sudo` doesn't exist
# lets overwrite it with a function that just executes things passed to sudo
# (yeah it won't work for sudo executed with flags)
if [ -f /.dockerenv ] && ! hash sudo 2>/dev/null && whoami | grep root; then
if [ -f /.dockerenv ] && ! hash sudo 2>/dev/null && whoami | grep root; then
sudo() {
$*
}
Expand Down Expand Up @@ -48,7 +48,7 @@ else
fi

if linux; then
distro=$(cat /etc/os-release | grep "^ID=" | cut -d\= -f2 | sed -e 's/"//g')
distro=$(grep "^ID=" /etc/os-release | cut -d'=' -f2 | sed -e 's/"//g')

case $distro in
"ubuntu")
Expand Down

0 comments on commit c46417f

Please sign in to comment.