fix other occurences of regex

This commit is contained in:
Jack
2020-02-03 18:07:45 +02:00
parent 93e3e19828
commit ed7e529e2c
+4 -4
View File
@@ -2,7 +2,7 @@
# Semi-automatic installer of macOS on VirtualBox # Semi-automatic 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.86.2 # version 0.86.3
# Requirements: 40GB available storage on host # Requirements: 40GB available storage on host
# Dependencies: bash >= 4.3, xxd, gzip, unzip, wget, dmg2img, # Dependencies: bash >= 4.3, xxd, gzip, unzip, wget, dmg2img,
@@ -637,7 +637,7 @@ if [ -w "Install ${macOS_release_name}.vdi" ]; then
read -n 1 -p " [y/N] " delete read -n 1 -p " [y/N] " delete
echo "" echo ""
if [ "${delete,,}" == "y" ]; then if [ "${delete,,}" == "y" ]; then
if [[ "$( VBoxManage list runningvms )" =~ ^\""${vmname}" ]]; if [[ "$( VBoxManage list runningvms )" =~ \""${vmname}"\" ]];
then then
echo '"'"Install ${macOS_release_name}.vdi"'" may be deleted' echo '"'"Install ${macOS_release_name}.vdi"'" may be deleted'
echo "only when the virtual machine is powered off." echo "only when the virtual machine is powered off."
@@ -771,7 +771,7 @@ echo "and released from VirtualBox Manager."
function populate_macos_target() { function populate_macos_target() {
print_dimly "stage: populate_macos_target" print_dimly "stage: populate_macos_target"
if [[ "$( VBoxManage list runningvms )" =~ ^\""${vmname}" ]]; then if [[ "$( VBoxManage list runningvms )" =~ \""${vmname}"\" ]]; then
printf "${highlight_color}"'Please '"${warning_color}"'manually'"${highlight_color}"' shut down the virtual machine and press enter to continue.'"${default_color}" printf "${highlight_color}"'Please '"${warning_color}"'manually'"${highlight_color}"' shut down the virtual machine and press enter to continue.'"${default_color}"
clear_input_buffer_then_read clear_input_buffer_then_read
fi fi
@@ -853,7 +853,7 @@ printf '\n'"${highlight_color}"'That'"'"'s it! Enjoy your virtual machine.'"${de
function delete_temporary_files() { function delete_temporary_files() {
print_dimly "stage: delete_temporary_files" print_dimly "stage: delete_temporary_files"
if [[ "$( VBoxManage list runningvms )" =~ ^\""${vmname}" ]]; if [[ "$( VBoxManage list runningvms )" =~ \""${vmname}"\" ]];
then then
printf 'Temporary files may be deleted when the virtual machine is shut down printf 'Temporary files may be deleted when the virtual machine is shut down
by running the following command at the script'"'"'s working directory: by running the following command at the script'"'"'s working directory: