added g prefix for MacPorts GNU coreutils
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# Semi-automatic installer of macOS on VirtualBox
|
# Semi-automatic installer of macOS on VirtualBox
|
||||||
# (c) myspaghetti, licensed under GPL2.0 or higher
|
# (c) myspaghetti, licensed under GPL2.0 or higher
|
||||||
# url: https://github.com/myspaghetti/macos-guest-virtualbox
|
# url: https://github.com/myspaghetti/macos-guest-virtualbox
|
||||||
# version 0.77.3
|
# version 0.77.4
|
||||||
|
|
||||||
# Requirements: 40GB available storage on host
|
# Requirements: 40GB available storage on host
|
||||||
# Dependencies: bash >= 4.0, unzip, wget, dmg2img,
|
# Dependencies: bash >= 4.0, unzip, wget, dmg2img,
|
||||||
@@ -143,7 +143,17 @@ if [ -n "$(sw_vers 2>/dev/null)" ]; then
|
|||||||
PATH="${homebrew_gnubin}:${PATH}"
|
PATH="${homebrew_gnubin}:${PATH}"
|
||||||
fi
|
fi
|
||||||
# if csplit isn't GNU variant, exit
|
# if csplit isn't GNU variant, exit
|
||||||
if [ -z "$(csplit --help 2>/dev/null)" ]; then
|
if [ -n "$(gcsplit --help 2>/dev/null)" ]; then
|
||||||
|
function csplit() {
|
||||||
|
gcsplit "$@"
|
||||||
|
}
|
||||||
|
function tac() {
|
||||||
|
gtac "$@"
|
||||||
|
}
|
||||||
|
function split() {
|
||||||
|
gsplit"$@"
|
||||||
|
}
|
||||||
|
elif [ -z "$(csplit --help 2>/dev/null)" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
printf 'macOS detected.\nPlease use a package manager such as '"${white_on_black}"'homebrew'"${default_color}"', '"${white_on_black}"'pkgsrc'"${default_color}"', '"${white_on_black}"'nix'"${default_color}"', or '"${white_on_black}"'MacPorts'"${default_color}"'.\n'
|
printf 'macOS detected.\nPlease use a package manager such as '"${white_on_black}"'homebrew'"${default_color}"', '"${white_on_black}"'pkgsrc'"${default_color}"', '"${white_on_black}"'nix'"${default_color}"', or '"${white_on_black}"'MacPorts'"${default_color}"'.\n'
|
||||||
echo "Please make sure the following packages are installed and that"
|
echo "Please make sure the following packages are installed and that"
|
||||||
|
|||||||
Reference in New Issue
Block a user