From a6d0ba6f0539341163dd03e42e829c5d1c00695b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C5=A1a=20Zejnilovi=C4=87?= Date: Fri, 9 Feb 2024 10:17:24 +0100 Subject: [PATCH] Update s3a_wrapper.sh to support whitespaces (#2211) --- scripts/bash/s3a_wrapper.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/bash/s3a_wrapper.sh b/scripts/bash/s3a_wrapper.sh index bfb916ab2..f5019798b 100755 --- a/scripts/bash/s3a_wrapper.sh +++ b/scripts/bash/s3a_wrapper.sh @@ -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