diff --git a/cdbm/Darvin/cdbm b/cdbm/Darwin/cdbm
similarity index 100%
rename from cdbm/Darvin/cdbm
rename to cdbm/Darwin/cdbm
diff --git a/setup.sh b/setup.sh
index 2105a88..504fefc 100644
--- a/setup.sh
+++ b/setup.sh
@@ -7,7 +7,18 @@ then
 	echo "run me as root to copy cdbm to the system"
 else
 	if [ ! -d /usr/local/bin ]; then mkdir -p /usr/local/bin; fi
-	cp Settings/cdbm /usr/local/bin
+	OS=`uname`
+	case "$OS" in
+		Darwin)
+			cp Settings/cdbm/Darwin/cdbm /usr/local/bin
+		;;
+		Linux)
+			cp Settings/cdbm/Linux/cdbm /usr/local/bin
+		;;
+		*)
+			$OS is not supported
+		;;
+	esac
 fi