Skip to content

Commit

Permalink
check for linux when installing udev
Browse files Browse the repository at this point in the history
  • Loading branch information
corbindavenport committed May 21, 2015
1 parent fed9b7f commit 5395d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ _install() {
}

_install_udev() {
if [ -n "$UDEV" ]; then
if [-n "$UDEV"] && ["$(expr substr $(uname -s) 1 5)" == "Linux"]; then

This comment has been minimized.

Copy link
@Heart1010

Heart1010 May 21, 2015

Missing spaces?! Shouldn't it be

if [ -n "$UDEV" ] && [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then

Regarding #16

if [ ! -d /etc/udev/rules.d/ ]; then
sudo mkdir -p /etc/udev/rules.d/
fi
Expand Down

1 comment on commit 5395d76

@corbindavenport
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, thanks for catching that. Fixed in the latest commit.

Please sign in to comment.