mirror of
https://github.com/OpenMW/openmw.git
synced 2026-02-01 21:48:26 +00:00
Don't run while loop in subshell
We need the variable writes to stick around. Also switch to an associative array so duplicates are removed.
This commit is contained in:
parent
87dfcf302f
commit
3849f36b46
1 changed files with 5 additions and 5 deletions
|
|
@ -666,18 +666,18 @@ macOS15_Xcode16_arm64:
|
|||
- aws --version
|
||||
- mkdir -p incoming_artifacts
|
||||
- mv *.zip incoming_artifacts/
|
||||
- destinations=()
|
||||
- declare -A destinations
|
||||
- |
|
||||
# todo: this will get upset by certain characters
|
||||
for merge_list in *_to-be-merged.txt; do
|
||||
dos2unix < $merge_list | while IFS=: read -r partial destination; do
|
||||
destinations+=("$destination")
|
||||
while IFS=: read -r partial destination; do
|
||||
destinations["$destination"]=""
|
||||
echo "Unzipping '$partial' to '$destination'"
|
||||
unzip -n -d "$destination" "incoming_artifacts/$partial"
|
||||
done
|
||||
done < <(dos2unix < $merge_list)
|
||||
done
|
||||
- |
|
||||
for destination in ${destinations[@]}; do
|
||||
for destination in ${!destinations[@]}; do
|
||||
pushd "$destination"
|
||||
for ci_id in CI-ID_*.txt; do
|
||||
cat "$ci_id" >> CI-ID.txt
|
||||
|
|
|
|||
Loading…
Reference in a new issue