* MinorFix

This commit is contained in:
Daniel Legt 2024-02-02 00:32:24 +02:00
parent 198a80cfae
commit a1ea6d0797
1 changed files with 1 additions and 1 deletions

View File

@ -75,7 +75,7 @@ upload_to_google_drive() {
delete_old_gdrive_backups() {
if [ -n "$GOOGLE_DRIVE_FOLDER_ID" ] && [ -n "$GOOGLE_DRIVE_KEEP_BACKUP_COUNT" ]; then
GCLOUD_BACKUPS=$(gdrive files list --query "'$GOOGLE_DRIVE_FOLDER_ID' in parents" --order "createdTime" --no-header | awk '{print $1}')
GCLOUD_BACKUPS=$(gdrive files list --parent $GOOGLE_DRIVE_FOLDER_ID --skip-header --order-by "createdTime asc" | awk '{print $1}')
BACKUP_COUNT=$(echo "$GCLOUD_BACKUPS" | wc -l)
log "Deleting old gdrive backups."