From cdd1893a31d0d9c83fa182f2ca92d59d1615095e Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Mon, 27 Apr 2020 13:02:24 +0300 Subject: [PATCH] better zsh error message --- macos-guest-virtualbox.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index ca9a3d1..3aee090 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -2,7 +2,7 @@ # Push-button installer of macOS on VirtualBox # (c) myspaghetti, licensed under GPL2.0 or higher # url: https://github.com/myspaghetti/macos-guest-virtualbox -# version 0.90.1 +# version 0.90.2 # Dependencies: bash coreutils gzip unzip wget xxd dmg2img # Supported versions: @@ -126,7 +126,9 @@ if [[ "${SHELL}" =~ /bash ]]; then fi elif [[ "${SHELL}" =~ /zsh ]]; then if [[ -z "${ZSH_VERSION}" ]]; then - echo "Can't determine ZSH_VERSION. Exiting." + echo "Can't determine ZSH_VERSION. The script runs on /bin/bash by default." + echo "Manually load the script with zsh or edit the #! line at the top of the script" + echo "to point to zsh. Exiting." exit elif [[ "${ZSH_VERSION:0:1}" -lt 5 ]]; then echo "Please run this script on zsh 5 or higher."