ce51a5db7ce872b2384d84a9d92f07a65385ba20
- Author
- Mario Santagiuliana <mario@marionline.it>
- Committer
- Mario Santagiuliana <mario@marionline.it>
- Date
Message
Add comment to log file when run script without option
Diff
1diff --git a/dt-s3-backup.sh b/dt-s3-backup.sh
2index a2e5ed151347188819e82e4a1d59911a5335435b..591600665a9d75eec81917a437b752e50bc810c8 100755
3--- a/dt-s3-backup.sh
4+++ b/dt-s3-backup.sh
5@@ -388,6 +388,7 @@ elif [ "$1" = "--backup" ]; then
6 get_file_sizes
7
8 else
9+ echo -e "[Only show `basename $0` usage options]\n" >> ${LOGFILE}
10 echo " USAGE:
11 `basename $0` [options]
12