replaced / with // to strip all occurrences instead of the first occurrence
This commit is contained in:
@@ -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.89.0
|
# version 0.89.1
|
||||||
|
|
||||||
# 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,
|
||||||
@@ -1403,8 +1403,8 @@ for argument in $@; do
|
|||||||
echo "by entering the following command:" &&
|
echo "by entering the following command:" &&
|
||||||
would_you_like_to_know_less && echo "" && echo "Available stages: ${stages}" && exit
|
would_you_like_to_know_less && echo "" && echo "Available stages: ${stages}" && exit
|
||||||
done
|
done
|
||||||
stages="${stages/documentation/}" # strip any occurrence of "documentation"
|
stages="${stages//documentation/}" # strip all occurrences of "documentation"
|
||||||
stages="${stages/troubleshoot/}" # strip any occurrence of "troubleshoot"
|
stages="${stages//troubleshoot/}" # strip all occurrences of "troubleshoot"
|
||||||
[[ -z "${1}" ]] && for stage in ${stages}; do ${stage}; done && exit
|
[[ -z "${1}" ]] && for stage in ${stages}; do ${stage}; done && exit
|
||||||
check_bash_version
|
check_bash_version
|
||||||
check_gnu_coreutils_prefix
|
check_gnu_coreutils_prefix
|
||||||
|
|||||||
Reference in New Issue
Block a user