From e0089ea684652aa4db6065f323314e84df0a545f Mon Sep 17 00:00:00 2001 From: Jack <31696646+myspaghetti@users.noreply.github.com> Date: Sun, 5 Apr 2020 13:14:11 +0300 Subject: [PATCH] replaced / with // to strip all occurrences instead of the first occurrence --- macos-guest-virtualbox.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macos-guest-virtualbox.sh b/macos-guest-virtualbox.sh index dc5642c..9f1fb1e 100755 --- a/macos-guest-virtualbox.sh +++ b/macos-guest-virtualbox.sh @@ -2,7 +2,7 @@ # Push-button installer of macOS on VirtualBox # (c) myspaghetti, licensed under GPL2.0 or higher # url: https://github.com/myspaghetti/macos-guest-virtualbox -# version 0.89.0 +# version 0.89.1 # Requirements: 40GB available storage on host # Dependencies: bash >= 4.3, xxd, gzip, unzip, wget, dmg2img, @@ -1403,8 +1403,8 @@ for argument in $@; do echo "by entering the following command:" && would_you_like_to_know_less && echo "" && echo "Available stages: ${stages}" && exit done -stages="${stages/documentation/}" # strip any occurrence of "documentation" -stages="${stages/troubleshoot/}" # strip any occurrence of "troubleshoot" +stages="${stages//documentation/}" # strip all occurrences of "documentation" +stages="${stages//troubleshoot/}" # strip all occurrences of "troubleshoot" [[ -z "${1}" ]] && for stage in ${stages}; do ${stage}; done && exit check_bash_version check_gnu_coreutils_prefix