[GH-ISSUE #8] "bad substitution" error in checking age of files #2

Closed
opened 2026-03-07 19:08:37 +03:00 by kerem · 2 comments
Owner

Originally created by @devau on GitHub (Apr 13, 2025).
Original GitHub issue: https://github.com/007revad/Synology_Docker_Export/issues/8

Hello

Synology_Docker_Export v1.0.1
DS1520+ DSM 7.2.2-72806-3

Exporting container settings to /volume1/docker/docker_exports

Exporting paperless-ngx json
/volume1/dvbin/Synology_Docker_Export-1.0.1/syno_docker_export.sh: line 105: ${container,,}_*.json: bad substitution

Finished

There must be a syntax error in the "# Delete backups older than $DeleteOlder day_s" if-fi section.
If I comment out that age checking, script runs fine to the end!

Originally created by @devau on GitHub (Apr 13, 2025). Original GitHub issue: https://github.com/007revad/Synology_Docker_Export/issues/8 Hello Synology_Docker_Export v1.0.1 DS1520+ DSM 7.2.2-72806-3 Exporting container settings to /volume1/docker/docker_exports Exporting paperless-ngx json **/volume1/dvbin/Synology_Docker_Export-1.0.1/syno_docker_export.sh: line 105: ${container,,}_*.json: bad substitution** Finished There must be a syntax error in the "# Delete backups older than $DeleteOlder day_s" if-fi section. If I comment out that age checking, script runs fine to the end!
kerem closed this issue 2026-03-07 19:08:38 +03:00
Author
Owner

@007revad commented on GitHub (Apr 14, 2025):

Try replacing this part of line 105:

"${container,,}_*.json"

with this:

"${container}_*.json"
<!-- gh-comment-id:2800321453 --> @007revad commented on GitHub (Apr 14, 2025): Try replacing this part of line 105: ``` "${container,,}_*.json" ``` with this: ``` "${container}_*.json" ````
Author
Owner

@devau commented on GitHub (Apr 14, 2025):

Thanks a lot, it is working now!!

<!-- gh-comment-id:2800624291 --> @devau commented on GitHub (Apr 14, 2025): Thanks a lot, it is working now!!
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_Docker_Export#2
No description provided.