From 8e0de66f4b1fa18fdd9b2e37d4ecb7fccd9035cf Mon Sep 17 00:00:00 2001 From: migmedia Date: Wed, 18 Dec 2019 12:25:13 +0100 Subject: [PATCH] Changed opt_verbose defaulting to '0'. Instead of ''. --- src/zfs-auto-snapshot.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) mode change 100644 => 100755 src/zfs-auto-snapshot.sh diff --git a/src/zfs-auto-snapshot.sh b/src/zfs-auto-snapshot.sh old mode 100644 new mode 100755 index cd88f0f..78f4cee --- a/src/zfs-auto-snapshot.sh +++ b/src/zfs-auto-snapshot.sh @@ -38,7 +38,7 @@ opt_sep='_' opt_setauto='' opt_syslog='' opt_skip_scrub='' -opt_verbose='' +opt_verbose='0' opt_pre_snapshot='' opt_post_snapshot='' opt_do_snapshots=1 @@ -111,7 +111,7 @@ print_log () # level, message, ... ;; (inf*) # test -n "$opt_syslog" && logger -t "$opt_prefix" -p daemon.info $* - test -z "$opt_quiet" && test -n "$opt_verbose" && echo $* + test -z "$opt_quiet" && [ $opt_verbose -gt 0 ] && echo $* ;; (deb*) # test -n "$opt_syslog" && logger -t "$opt_prefix" -p daemon.debug $* @@ -317,7 +317,7 @@ do (-q|--quiet) opt_debug='' opt_quiet='1' - opt_verbose='' + opt_verbose='0' shift 1 ;; (-r|--recursive)