fix: ingore root folder
This commit is contained in:
@@ -22,8 +22,8 @@ data:
|
||||
echo ">> Backups prior to '$DATE_RANGE' will be removed";
|
||||
echo "";
|
||||
|
||||
FILES=$(s3cmd ls --no-check-certificate ${BUCKET}/cl01tl/etcd/ |
|
||||
awk -v file_match="$FILE_MATCH" '$4 < file_match {print $4}');
|
||||
FILES=$(s3cmd ls --no-check-certificate "${BUCKET}/cl01tl/etcd/" | \
|
||||
awk -v file_match="$FILE_MATCH" '$4 < file_match && $4 !~ /\/$/ {print $4}')
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "";
|
||||
|
||||
Reference in New Issue
Block a user