fix shellcheck
This commit is contained in:
parent
aa193bf423
commit
037257b5e2
1 changed files with 3 additions and 3 deletions
|
@ -28,10 +28,10 @@ let
|
||||||
s3cfg="$2"
|
s3cfg="$2"
|
||||||
|
|
||||||
ageRecipient="age17ckyc69njpryytc63ynn545jswyucg28k5xg3043g3j6q38dxqwq0wzhm2"
|
ageRecipient="age17ckyc69njpryytc63ynn545jswyucg28k5xg3043g3j6q38dxqwq0wzhm2"
|
||||||
bucket="$(cat "$configFile" | grep 'bucket=' | sed 's/bucket \?= \?')"
|
bucket="$(grep 'bucket=' < "$configFile" | sed 's/bucket \?= \?')"
|
||||||
prefix="$(cat "$configFile" | grep 'prefix=' | sed 's/prefix \?= \?')"
|
prefix="$(grep 'prefix=' < "$configFile" | sed 's/prefix \?= \?')"
|
||||||
|
|
||||||
s3Dir="s3://$bucket/\$\{prefix}misskey-$(date --iso-8601)"
|
s3Dir="s3://$bucket/$\{prefix}misskey-$(date --iso-8601)"
|
||||||
echo "Uploading backups to '$s3Dir'"
|
echo "Uploading backups to '$s3Dir'"
|
||||||
|
|
||||||
function upload () {
|
function upload () {
|
||||||
|
|
Loading…
Reference in a new issue