From a23e63a5707054ffc13180e02bcd0bde343f9fca Mon Sep 17 00:00:00 2001 From: David Rabkin Date: Sat, 21 Oct 2023 12:36:45 +0300 Subject: [PATCH] bak: improve code readability --- app/bak | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/bak b/app/bak index f20d7f2..b65135f 100755 --- a/app/bak +++ b/app/bak @@ -4,16 +4,16 @@ # Makes incremental backups from the first parameter to the second. # shellcheck disable=SC1091,SC2034 # File not following, appears unused. readonly \ - BASE_APP_VERSION=0.9.20230805 \ + BASE_APP_VERSION=0.9.20231021 \ BASE_MIN_VERSION=0.9.20230312 . base.sh [ "$#" -eq 2 ] || die Usage: bak.sh source destination. -validate_cmd rdiff-backup readonly \ DST="$2" \ SRC="$1" -iswritable "$DST" || die "$DST" is not writable. +validate_cmd rdiff-backup isreadable "$SRC" || die "$SRC" is not readable. +iswritable "$DST" || die "$DST" is not writable. { rdiff-backup \ --force \