From 8ce34adf83130f06bb2c056c66e55618f7dd9e4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hannes=20K=C3=B6rber?= Date: Mon, 20 May 2019 22:34:38 +0200 Subject: [PATCH] Fix path combination to prevent "empty" parts --- backup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.sh b/backup.sh index e9ea2ac..2d43f1e 100755 --- a/backup.sh +++ b/backup.sh @@ -71,5 +71,5 @@ timestamp="$(date --utc -Iseconds)" s3 cp \ --storage-class DEEP_ARCHIVE \ - \ - "s3://${bucket}/${name}-${timestamp}/${filepath}.tar.gz.gpg" + "s3://${bucket}/${name}-${timestamp}/${filepath##*(/)}.tar.gz.gpg" done