Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
upped Bash version requirement to 4.3
Browse files Browse the repository at this point in the history
upped Bash version requirement to 4.3 due to buggy associative array implementation (see [issue 147](#147))
  • Loading branch information
myspaghetti authored Jan 13, 2020
1 parent 5260861 commit 68c9fb7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions macos-guest-virtualbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Semi-automatic installer of macOS on VirtualBox
# (c) myspaghetti, licensed under GPL2.0 or higher
# url: https://github.com/myspaghetti/macos-guest-virtualbox
# version 0.78.0
# version 0.78.1

# Requirements: 40GB available storage on host
# Dependencies: bash >= 4.0, unzip, wget, dmg2img,
# Dependencies: bash >= 4.3, unzip, wget, dmg2img,
# VirtualBox with Extension Pack >= 6.0

function set_variables() {
Expand Down Expand Up @@ -124,12 +124,15 @@ if [ -z "${BASH_VERSION}" ]; then
echo "Can't determine BASH_VERSION. Exiting."
exit
elif [ "${BASH_VERSION:0:1}" -lt 4 ]; then
echo "Please run this script on Bash 4.0 or higher."
echo "Please run this script on Bash 4.3 or higher."
if [ -n "$(sw_vers 2>/dev/null)" ]; then
echo "macOS detected. Make sure the script is not running on"
echo "the default /bin/bash which is version 3."
fi
exit
elif [ "${BASH_VERSION:0:1}" -eq 4 -a "${BASH_VERSION:2:1}" -le 2 ]; then
echo "Please run this script on Bash 4.3 or higher."
exit
fi
}

Expand Down

0 comments on commit 68c9fb7

Please sign in to comment.