removed quotes from parameter expansion $@
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
# One-key semi-automatic installer of macOS on VirtualBox
|
# One-key semi-automatic installer of macOS on VirtualBox
|
||||||
# (c) img2tab, licensed under GPL2.0 or higher
|
# (c) img2tab, licensed under GPL2.0 or higher
|
||||||
# url: https://github.com/img2tab/macos-guest-virtualbox
|
# url: https://github.com/img2tab/macos-guest-virtualbox
|
||||||
# version 0.40
|
# version 0.41
|
||||||
|
|
||||||
# Requirements: 33.5GB available storage on host
|
# Requirements: 33.5GB available storage on host
|
||||||
# Dependencies: bash>=4.0, unzip, wget, dmg2img,
|
# Dependencies: bash>=4.0, unzip, wget, dmg2img,
|
||||||
@@ -93,11 +93,11 @@ if [ -z "$(VBoxManage -v 2>/dev/null)" ]; then
|
|||||||
if [ -n "$('/mnt/c/Program Files/Oracle/VirtualBox/VBoxManage.exe' -v 2>/dev/null)" ]; then
|
if [ -n "$('/mnt/c/Program Files/Oracle/VirtualBox/VBoxManage.exe' -v 2>/dev/null)" ]; then
|
||||||
# If VBoxManage.exe is in the standard install location, use it.
|
# If VBoxManage.exe is in the standard install location, use it.
|
||||||
function VBoxManage() {
|
function VBoxManage() {
|
||||||
'/mnt/c/Program Files/Oracle/VirtualBox/VBoxManage.exe' "$@"
|
'/mnt/c/Program Files/Oracle/VirtualBox/VBoxManage.exe' $@
|
||||||
}
|
}
|
||||||
elif [ -n "$('/cygdrive/c/Program Files/Oracle/VirtualBox/VBoxManage.exe' -v 2>/dev/null)" ]; then
|
elif [ -n "$('/cygdrive/c/Program Files/Oracle/VirtualBox/VBoxManage.exe' -v 2>/dev/null)" ]; then
|
||||||
function VBoxManage() {
|
function VBoxManage() {
|
||||||
'/cygdrive/c/Program Files/Oracle/VirtualBox/VBoxManage.exe' "$@"
|
'/cygdrive/c/Program Files/Oracle/VirtualBox/VBoxManage.exe' $@
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
echo "Please make sure VirtualBox is installed, and that the path to"
|
echo "Please make sure VirtualBox is installed, and that the path to"
|
||||||
|
|||||||
Reference in New Issue
Block a user