Skip to content

Commit

Permalink
Fix grabbing 5 args with xargs when should have grabbed 4
Browse files Browse the repository at this point in the history
  • Loading branch information
dmannarino committed Nov 2, 2024
1 parent d0c56d8 commit 10b7765
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions batch/scripts/unify_projection.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo "Reproject to a common CRS"
src_count=0
CMD_ARGS=()

for s in ${SRC[@]}; do
for s in "${SRC[@]}"; do
source_dir="SRC_${src_count}"
mkdir -p "$source_dir"

Expand All @@ -30,7 +30,7 @@ for s in ${SRC[@]}; do
reprojected_dir="REPROJECTED_${src_count}"
mkdir -p "$reprojected_dir"

cd $source_dir
cd "${source_dir}"
for d in $(find . -type d | sed 's/.\///'); do
mkdir -p "../${reprojected_dir}/${d}"
done
Expand All @@ -47,4 +47,4 @@ for s in ${SRC[@]}; do
src_count=$(($src_count+1))
done

echo "${CMD_ARGS[@]}" | xargs -n 5 -P 32 _warp_and_upload.sh
echo "${CMD_ARGS[@]}" | xargs -n 4 -P 32 _warp_and_upload.sh

0 comments on commit 10b7765

Please sign in to comment.