From de3a8fb0cc9fede9dd46b5457788476d9ed65f4e Mon Sep 17 00:00:00 2001 From: levasseur Date: Fri, 8 Oct 2021 11:30:08 +0200 Subject: [PATCH] fix: typoes --- lib/filefct.sh | 2 +- lib/support.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/filefct.sh b/lib/filefct.sh index e976520..c342b15 100644 --- a/lib/filefct.sh +++ b/lib/filefct.sh @@ -31,7 +31,7 @@ backupdist() local file= for file in $@; do local tmstmp=$(stdtime) - if [[ - L ${file} ]]; then + if [[ -L ${file} ]]; then # With symbolik links we call again backupdist to treat target backupdist $(readlink -f ${file}) elif [[ -f ${file} ]]; then diff --git a/lib/support.sh b/lib/support.sh index fdc504b..96d18f7 100644 --- a/lib/support.sh +++ b/lib/support.sh @@ -103,7 +103,7 @@ export -f show_version # Get module name from module file get_mod_name() { - if [[ $# -ne 1 ]] then + if [[ $# -ne 1 ]]; then prnt E "get_mod_name(): Bad number of parameters." die 11 --force fi