Skip to content

Commit

Permalink
Update s3a_wrapper.sh to support whitespaces (#2211)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zejnilovic authored Feb 9, 2024
1 parent e3f81db commit a6d0ba6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/bash/s3a_wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ while [[ $# -gt 0 ]]; do
elif [ "$1" == "|" ]; then
# If the argument is a pipe character
other_args+=("'|'")
elif [[ "$1" =~ ^[[:space:]]+$ ]]; then
# If the argument is one or more space characters
other_args+=("'$1'")
else
other_args+=("$1")
fi
Expand Down

0 comments on commit a6d0ba6

Please sign in to comment.