fixed zsh \c bug (issue #281)
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# Push-button installer of macOS on VirtualBox
|
# Push-button 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-virtualbox
|
# url: https://github.com/myspaghetti/macos-virtualbox
|
||||||
# version 0.96.4
|
# version 0.96.5
|
||||||
|
|
||||||
# Dependencies: bash coreutils gzip unzip wget xxd dmg2img
|
# Dependencies: bash coreutils gzip unzip wget xxd dmg2img
|
||||||
# Supported versions:
|
# Supported versions:
|
||||||
@@ -134,7 +134,7 @@ elif [[ "${SHELL}" =~ /zsh ]]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
# make zsh parse the script (almost) like bash
|
# make zsh parse the script (almost) like bash
|
||||||
setopt extendedglob sh_word_split ksh_arrays posix_argzero nullglob
|
setopt extendedglob sh_word_split ksh_arrays posix_argzero nullglob bsd_echo
|
||||||
else
|
else
|
||||||
echo "Can't determine SHELL. Exiting."
|
echo "Can't determine SHELL. Exiting."
|
||||||
exit
|
exit
|
||||||
|
|||||||
Reference in New Issue
Block a user