From 0e9ef7ccc1b7e4c5f1ad191e1e8dec4f844e97e6 Mon Sep 17 00:00:00 2001 From: Dave Russell <39733752+007revad@users.noreply.github.com> Date: Sun, 9 Apr 2023 19:02:36 +1000 Subject: [PATCH] Update syno_hdd_db.sh - Show the options used --- syno_hdd_db.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 69f1ac5..45a1d38 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -162,6 +162,10 @@ EOF } +# Save options used +args="$@" + + # Check for flags with getopt if options="$(getopt -o abcdefghijklmnopqrstuvwxyz0123456789 -a \ -l showedits,noupdate,nodbupdate,m2,force,ram,help,version,debug -- "$@")"; then @@ -258,6 +262,9 @@ elif [[ $model =~ '-j'$ ]]; then # GitHub issue #2 echo -e "\nUsing model: $model" fi +# Show options used +echo "Using options: $args" + #echo "" # To keep output readable