synology-pihole
synology-pihole copied to clipboard
--log command line option is positional
If the --log option is used with syno_pihole.sh and a log file is not specified then this option must be specified last after all other commands, parameters and options. Otherwise a parsing error occurs when the next command line argument is blindly assumed to be the name of the log file.
For example: syno_pihole.sh -l update will fail with a 'no command' error and error messages logged to ./update