added "-i" for suggested zsh invocation

This commit is contained in:
My Spaghetti
2021-05-27 16:46:37 +03:00
parent 17aa03f4f4
commit e330d03816
+1 -1
View File
@@ -131,7 +131,7 @@ if [[ -n "${BASH_VERSION}" && -n "${ZSH_VERSION}" ]]; then
echo "The script cannot determine if it is executed on bash or zsh." echo "The script cannot determine if it is executed on bash or zsh."
echo "Please explicitly execute the script on the same shell as the interactive shell," echo "Please explicitly execute the script on the same shell as the interactive shell,"
echo -e "for example, for zsh:\n" echo -e "for example, for zsh:\n"
echo " ${highlight_color}zsh macos-guest-virtualbox.sh${default_color}" echo " ${highlight_color}zsh -i macos-guest-virtualbox.sh${default_color}"
exit exit
elif [[ -n "${BASH_VERSION}" ]]; then elif [[ -n "${BASH_VERSION}" ]]; then
if [[ ! ( "${BASH_VERSION:0:1}" -ge 5 if [[ ! ( "${BASH_VERSION:0:1}" -ge 5