From c3fed7d590d983c61595e8b5284ae7e208538865 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Sun, 9 Apr 2023 19:13:58 +1000 Subject: [PATCH 1/3] Update CHANGES.txt - Show the options used. --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index f92ea63..9dbf9dc 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v1.0.8 +- Show the options used. + v1.0.7 - Changed to show usage if invalid long option used instead of continuing. From 07a06c2f128bec56c659b967d1f190ff6f2dc099 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Sun, 9 Apr 2023 19:16:06 +1000 Subject: [PATCH 2/3] Update CHANGES.txt - Show the options used. --- CHANGES.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 9dbf9dc..8c98a31 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,8 +1,6 @@ -v1.0.8 -- Show the options used. - v1.0.7 - Changed to show usage if invalid long option used instead of continuing. +- Show the options used. v1.0.6 - Added a 10 second timeout to the reboot question so the script will exit if scheduled to run at shutdown. From 630fc3e0cad2a51bc33c710cfc25c118255c5ade Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Sun, 9 Apr 2023 19:16:25 +1000 Subject: [PATCH 3/3] Update syno_enable_dedupe.sh - Show the options used. --- syno_enable_dedupe.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/syno_enable_dedupe.sh b/syno_enable_dedupe.sh index fb6e238..46d3b24 100644 --- a/syno_enable_dedupe.sh +++ b/syno_enable_dedupe.sh @@ -54,6 +54,10 @@ EOF } +# Save options used +args="$@" + + # Check for flags with getopt if options="$(getopt -o abcdefghijklmnopqrstuvwxyz0123456789 -a \ -l check,restore,help,version,log,debug -- "$@")"; then @@ -143,6 +147,9 @@ if [[ $buildphase == GM ]]; then buildphase=""; fi if [[ $smallfixnumber -gt "0" ]]; then smallfix="-$smallfixnumber"; fi echo -e "$model DSM $productversion-$buildnumber$smallfix $buildphase\n" +# Show options used +echo "Using options: $args" + #------------------------------------------------------------------------------ # Check latest release with GitHub API