From 1beac3ce911854bd8fc145a17c4fa9a870e4d9e2 Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Thu, 11 Nov 2021 14:19:12 -0500 Subject: [PATCH] M1 mac compatibility --- template_standalone.sh | 8 +++++++- utilities/macOS.bash | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/template_standalone.sh b/template_standalone.sh index aa6dc5b..0fe21e0 100755 --- a/template_standalone.sh +++ b/template_standalone.sh @@ -437,7 +437,13 @@ _useGNUutils_() { "/usr/local/opt/gnu-tar/libexec/gnubin" \ "/usr/local/opt/coreutils/libexec/gnubin" \ "/usr/local/opt/gnu-sed/libexec/gnubin" \ - "/usr/local/opt/grep/libexec/gnubin"; then + "/usr/local/opt/grep/libexec/gnubin" \ + "/usr/local/opt/findutils/libexec/gnubin" \ + "/opt/homebrew/opt/findutils/libexec/gnubin" \ + "/opt/homebrew/opt/gnu-sed/libexec/gnubin" \ + "/opt/homebrew/opt/grep/libexec/gnubin" \ + "/opt/homebrew/opt/coreutils/libexec/gnubin" \ + "/opt/homebrew/opt/gnu-tar/libexec/gnubin"; then return 0 else return 1 diff --git a/utilities/macOS.bash b/utilities/macOS.bash index 47cc206..a7be66c 100644 --- a/utilities/macOS.bash +++ b/utilities/macOS.bash @@ -68,7 +68,13 @@ _useGNUutils_() { "/usr/local/opt/gnu-tar/libexec/gnubin" \ "/usr/local/opt/coreutils/libexec/gnubin" \ "/usr/local/opt/gnu-sed/libexec/gnubin" \ - "/usr/local/opt/grep/libexec/gnubin"; then + "/usr/local/opt/grep/libexec/gnubin" \ + "/usr/local/opt/findutils/libexec/gnubin" \ + "/opt/homebrew/opt/findutils/libexec/gnubin" \ + "/opt/homebrew/opt/gnu-sed/libexec/gnubin" \ + "/opt/homebrew/opt/grep/libexec/gnubin" \ + "/opt/homebrew/opt/coreutils/libexec/gnubin" \ + "/opt/homebrew/opt/gnu-tar/libexec/gnubin"; then return 0 else return 1