workaround for WSL path issues

This commit is contained in:
Jack
2019-08-22 11:03:20 +03:00
committed by GitHub
parent c001660730
commit 6ad3b5f991
+3 -2
View File
@@ -2,7 +2,7 @@
# Semi-automatic installer of macOS on VirtualBox
# (c) myspaghetti, licensed under GPL2.0 or higher
# url: https://github.com/img2tab/macos-guest-virtualbox
# version 0.73.6
# version 0.74.0
# Requirements: 40GB available storage on host
# Dependencies: bash >= 4.0, unzip, wget, dmg2img,
@@ -192,8 +192,9 @@ elif [[ "$(cat /proc/sys/kernel/osrelease 2>/dev/null)" =~ Microsoft ]]; then
echo "Can't find VBoxManage in PATH variable,"
echo "checking ${wsl_path_VBoxManage}"
if [ -n "$("${wsl_path_VBoxManage}" -v 2>/dev/null)" ]; then
PATH="${PATH}:${wsl_path_VBoxManage}"
function VBoxManage() {
"${wsl_path_VBoxManage}" "$@"
VBoxManage.exe "$@"
}
echo "Found VBoxManage"
else