From 108e5602a8a8fef98b46993e27b452f792d83d1d Mon Sep 17 00:00:00 2001 From: tracer Date: Tue, 7 Jan 2020 09:20:50 +0100 Subject: [PATCH] updated installer, support for Darwin added --- cdbm/{Darvin => Darwin}/cdbm | Bin setup.sh | 13 ++++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) rename cdbm/{Darvin => Darwin}/cdbm (100%) 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