Browse Source
Update syno_hdd_db.sh
- Show the options used
pull/53/head
Dave Russell
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
7 additions and
0 deletions
-
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 |
|
|
|
|
|
|
|
|
|
|
|
|