fix shellcheck

This commit is contained in:
jaina heartles 2024-12-25 15:45:39 -05:00
parent aa193bf423
commit 037257b5e2

View file

@ -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 () {