Browse Source

Update syno_hdd_db.sh

- Show the options used
pull/53/head
Dave Russell 3 years ago
committed by GitHub
parent
commit
0e9ef7ccc1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      syno_hdd_db.sh

7
syno_hdd_db.sh

@ -162,6 +162,10 @@ EOF
} }
# Save options used
args="$@"
# Check for flags with getopt # Check for flags with getopt
if options="$(getopt -o abcdefghijklmnopqrstuvwxyz0123456789 -a \ if options="$(getopt -o abcdefghijklmnopqrstuvwxyz0123456789 -a \
-l showedits,noupdate,nodbupdate,m2,force,ram,help,version,debug -- "$@")"; then -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" echo -e "\nUsing model: $model"
fi fi
# Show options used
echo "Using options: $args"
#echo "" # To keep output readable #echo "" # To keep output readable

Loading…
Cancel
Save