Skip to content

Commit

Permalink
Merge pull request #13 from 007revad/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
007revad authored Apr 9, 2023
2 parents e87dfcc + 630fc3e commit 16d06b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
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.
Expand Down
7 changes: 7 additions & 0 deletions syno_enable_dedupe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 16d06b9

Please sign in to comment.