Skip to content

Commit

Permalink
fix bash if-then
Browse files Browse the repository at this point in the history
  • Loading branch information
sytelus committed Sep 4, 2017
1 parent 6cf89b5 commit e6df792
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 @@ -12,11 +12,11 @@ git submodule update --init --recursive
#give user perms to access USB port - this is not needed if not using PX4 HIL
#TODO: figure out how to do below in travis
if [ "$(uname)" == "Darwin" ]; then
if [[ ! -z "${whoami}" ]] #this happens when running in travis
if [[ ! -z "${whoami}" ]]; then #this happens when running in travis
sudo dseditgroup -o edit -a `whoami` -t user dialout
fi
else
if [[ ! -z "${whoami}" ]] #this happens when running in travis
if [[ ! -z "${whoami}" ]]; then #this happens when running in travis
sudo /usr/sbin/useradd -G dialout $USER
sudo usermod -a -G dialout $USER
fi
Expand Down

0 comments on commit e6df792

Please sign in to comment.