avoid doing md5sums twice
This commit is contained in:
+13
-13
@@ -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-guest-virtualbox
|
# url: https://github.com/myspaghetti/macos-guest-virtualbox
|
||||||
# version 0.91.0
|
# version 0.91.1
|
||||||
|
|
||||||
# Dependencies: bash coreutils gzip unzip wget xxd dmg2img
|
# Dependencies: bash coreutils gzip unzip wget xxd dmg2img
|
||||||
# Supported versions:
|
# Supported versions:
|
||||||
@@ -906,13 +906,10 @@ booting into the initial installer environment again.'
|
|||||||
echo ""
|
echo ""
|
||||||
for (( i=5; i>0; i-- )); do printf $' \r'"${i}"; sleep 0.5; done
|
for (( i=5; i>0; i-- )); do printf $' \r'"${i}"; sleep 0.5; done
|
||||||
fi
|
fi
|
||||||
printf '
|
echo -x "For further information, such as applying EFI and NVRAM variables to enable
|
||||||
For further information, such as applying EFI and NVRAM variables to enable
|
iMessage connectivity, see the documentation with the following command:\n\n"
|
||||||
iMessage connectivity, see the documentation with the following command:
|
|
||||||
|
|
||||||
'
|
|
||||||
would_you_like_to_know_less
|
would_you_like_to_know_less
|
||||||
printf $'\n'"${highlight_color}"'That'"'"'s it! Enjoy your virtual machine.'"${default_color}"$'\n'
|
echo -x "\n${highlight_color}That's it! Enjoy your virtual machine.${default_color}\n"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1156,12 +1153,15 @@ VBoxManage showvminfo "${vm_name}" --machinereadable --details 2>&1
|
|||||||
VBoxManage getextradata "${vm_name}" 2>&1
|
VBoxManage getextradata "${vm_name}" 2>&1
|
||||||
echo '################################################################################'
|
echo '################################################################################'
|
||||||
echo 'md5 hashes'
|
echo 'md5 hashes'
|
||||||
md5sum "${macOS_release_name}_BaseSystem"* 2>/dev/null
|
if [[ -n "$(md5sum --version 2>/dev/null)" ]]; then
|
||||||
md5sum "${macOS_release_name}_Install"* 2>/dev/null
|
md5sum "${macOS_release_name}_BaseSystem"* 2>/dev/null
|
||||||
md5sum "${macOS_release_name}_Apple"* 2>/dev/null
|
md5sum "${macOS_release_name}_Install"* 2>/dev/null
|
||||||
md5 "${macOS_release_name}_BaseSystem"* 2>/dev/null
|
md5sum "${macOS_release_name}_Apple"* 2>/dev/null
|
||||||
md5 "${macOS_release_name}_Install"* 2>/dev/null
|
else
|
||||||
md5 "${macOS_release_name}_Apple"* 2>/dev/null
|
md5 "${macOS_release_name}_BaseSystem"* 2>/dev/null
|
||||||
|
md5 "${macOS_release_name}_Install"* 2>/dev/null
|
||||||
|
md5 "${macOS_release_name}_Apple"* 2>/dev/null
|
||||||
|
fi
|
||||||
echo '################################################################################'
|
echo '################################################################################'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user