Skip to content

Commit

Permalink
Fix: support low bash version
Browse files Browse the repository at this point in the history
  • Loading branch information
zijiren233 committed Jun 16, 2024
1 parent 3a2bfdc commit befd9a7
Show file tree
Hide file tree
Showing 6 changed files with 83 additions and 142 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
declare -a arr=()
OIFS="$IFS"
IFS=$'\n,'
for line in $(BUILD_CONFIG=script/build.config.sh bash script/build.sh --show-all-targets); do
for line in $(BUILD_CONFIG=script/build.config.sh bash script/build.sh --show-all-platforms); do
arr+=("$line")
done
IFS="$OIFS"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
declare -a arr=()
OIFS="$IFS"
IFS=$'\n,'
for line in $(BUILD_CONFIG=script/build.config.sh bash script/build.sh --show-all-targets); do
for line in $(BUILD_CONFIG=script/build.config.sh bash script/build.sh --show-all-platforms); do
arr+=("$line")
done
IFS="$OIFS"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
declare -a arr=()
OIFS="$IFS"
IFS=$'\n,'
for line in $(BUILD_CONFIG=script/build.config.sh bash script/build.sh --show-all-targets); do
for line in $(BUILD_CONFIG=script/build.config.sh bash script/build.sh --show-all-platforms); do
arr+=("$line")
done
IFS="$OIFS"
Expand Down
1 change: 1 addition & 0 deletions build.config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source script/build.config.sh
4 changes: 2 additions & 2 deletions script/build.config.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function parseDepArgs() {
for i in "$@"; do
case ${i,,} in
while [[ $# -gt 0 ]]; do
case "${1}" in
--version=*)
VERSION="${i#*=}"
shift
Expand Down
Loading

0 comments on commit befd9a7

Please sign in to comment.