From b8c6d01d5d74805a05b2136f0b34b8d602116aed Mon Sep 17 00:00:00 2001 From: Scott Bronson Date: Thu, 29 Aug 2019 15:31:49 -0700 Subject: [PATCH] Use GNU coreutils if they're installed --- macos-guest-virtualbox.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index b4c7691..724ab5c 100644 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -72,6 +72,11 @@ else fi fi +# Homebrew doesn't add GNU coreutils to PATH. If they exist, use them. +if [ -d '/usr/local/opt/coreutils/libexec/gnubin' ]; then + PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH" +fi + white_on_red="\e[48;2;255;0;0m\e[38;2;255;255;255m" white_on_black="\e[48;2;0;0;9m\e[38;2;255;255;255m" default_color="\033[0m"