Fix path combination to prevent "empty" parts

This commit is contained in:
Hannes Körber
2019-05-20 22:34:38 +02:00
parent 5a466a641b
commit 8ce34adf83

View File

@@ -71,5 +71,5 @@ timestamp="$(date --utc -Iseconds)"
s3 cp \ s3 cp \
--storage-class DEEP_ARCHIVE \ --storage-class DEEP_ARCHIVE \
- \ - \
"s3://${bucket}/${name}-${timestamp}/${filepath}.tar.gz.gpg" "s3://${bucket}/${name}-${timestamp}/${filepath##*(/)}.tar.gz.gpg"
done done