mirror of
https://github.com/007revad/Synology_HDD_db.git
synced 2026-04-25 13:45:59 +03:00
[GH-ISSUE #563] Function to check options flag broken in v3.6.121 #205
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Synology_HDD_db#205
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jjlizz on GitHub (Feb 13, 2026).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/563
Well I'm playing around with the newest script on my DS1525+ with DSM 7.3.2-86009 Update 1.
I'm running the script using:
But flag -n does not function.
Here's what I found:
In older version like v3.6.119, the following code(in syno_hdd_db.sh, around line 115) is used to check option flags
For newest version, the code has been changed to
Under this condition, getopt does not work properly and always output "--" as the result, causing all flags invalid.
I just deleted all "\" in the code as below and everything is fine.
Hope this would help.
@007revad commented on GitHub (Feb 13, 2026):
I've fixed the getopts issue. Can you try this one:
https://github.com/007revad/Synology_HDD_db/blob/develop/syno_hdd_db.sh
@jjlizz commented on GitHub (Feb 14, 2026):
Duplicated code at line 120. The other parts seem good.
@007revad commented on GitHub (Feb 14, 2026):
Fixed and released.
https://github.com/007revad/Synology_HDD_db/releases/tag/v3.6.122