From bb77f1f5ec4199cc714f8ff7fb855ade34a26d54 Mon Sep 17 00:00:00 2001 From: deajan Date: Mon, 30 Jul 2018 16:34:46 +0200 Subject: [PATCH] Removed double / in _ListRecursiveBackupDirectories --- dev/n_obackup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dev/n_obackup.sh b/dev/n_obackup.sh index 6b6e828..20082a5 100755 --- a/dev/n_obackup.sh +++ b/dev/n_obackup.sh @@ -403,7 +403,7 @@ function _ListRecursiveBackupDirectoriesLocal { # Make sure there is only one trailing slash directory="${directory%/}/" # No sudo here, assuming you should have all necessary rights for local checks - cmd="$FIND_CMD -L $directory/ -mindepth 1 -maxdepth 1 -type d >> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP 2> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID.$TSTAMP" + cmd="$FIND_CMD -L $directory -mindepth 1 -maxdepth 1 -type d >> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP 2> $RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID.$TSTAMP" Logger "Launching command [$cmd]." "DEBUG" eval "$cmd" retval=$? @@ -456,7 +456,7 @@ function _ListRecursiveBackupDirectoriesRemoteSub { for directory in "${directories[@]}"; do # Make sure there is only one trailing slash directory="${directory%/}/" - cmd="$REMOTE_FIND_CMD -L \"$directory\"/ -mindepth 1 -maxdepth 1 -type d" + cmd="$REMOTE_FIND_CMD -L \"$directory\" -mindepth 1 -maxdepth 1 -type d" Logger "Launching command [$cmd]." "DEBUG" eval $cmd retval=$?