From 5395d7674713e919c5b2f623c70762d64d64a9cd Mon Sep 17 00:00:00 2001 From: Corbin Davenport Date: Thu, 21 May 2015 11:22:43 -0400 Subject: [PATCH] check for linux when installing udev --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 50ef2a5..c546eed 100755 --- a/install.sh +++ b/install.sh @@ -28,7 +28,7 @@ _install() { } _install_udev() { - if [ -n "$UDEV" ]; then + if [-n "$UDEV"] && ["$(expr substr $(uname -s) 1 5)" == "Linux"]; then if [ ! -d /etc/udev/rules.d/ ]; then sudo mkdir -p /etc/udev/rules.d/ fi