Closed saiwing-yeung closed 1 year ago
If you're on MacOS uname should return Darwin and you should be in the
else ifeq ($(PLATFORM), Darwin) # MacOS
section. There should be no need to change anything in the Linux section. For me
orion:GarminDB_develop tgoetz$ which bash
/usr/local/bin/bash
What MacOs are you on? I'm on 13.1.
I think the better solution is to change this line:
--- a/defines.mk
+++ b/defines.mk
@@ -16,7 +16,7 @@ YESTERDAY = $(shell date --date yesterday +"%m/%d/%Y")
else ifeq ($(PLATFORM), Darwin) # MacOS
-SHELL=/usr/local/bin/bash
+SHELL?=/usr/local/bin/bash
TIME ?= time
YESTERDAY = $(shell date -v-1d +"%m/%d/%Y")
and then you can put a value that matches your system in my-defines.mk.
Interesting... I am on 12.6.2 (21G320). For me, almost everything on /usr/local/bin/
is from HomeBrew. From this, I think all stock shells should be on /bin
.
Describe the bug Rebuilding the db results in a "Command not found" error.
To Reproduce Steps to reproduce the behavior:
Expected behavior Database get rebuilt.
Additional context Modifying
defines.mk
like this fixes it on macOS, but it'd probably break other platforms.