1
0
mirror of https://github.com/deajan/obackup.git synced 2024-11-15 04:03:41 +01:00

Do not double quote dirList

This commit is contained in:
deajan 2020-05-04 11:08:08 +01:00
parent 9a43145dc1
commit 3d97324366

View File

@ -596,7 +596,7 @@ function _GetDirectoriesSizeLocal {
# No sudo here, assuming you should have all the necessary rights # No sudo here, assuming you should have all the necessary rights
# This is not pretty, but works with all supported systems # This is not pretty, but works with all supported systems
cmd="du -cs \"$dirList\" | tail -n1 | cut -f1 > \"$RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP\" 2> \"$RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID.$TSTAMP\"" cmd="du -cs $dirList | tail -n1 | cut -f1 > \"$RUN_DIR/$PROGRAM.${FUNCNAME[0]}.$SCRIPT_PID.$TSTAMP\" 2> \"$RUN_DIR/$PROGRAM.${FUNCNAME[0]}.error.$SCRIPT_PID.$TSTAMP\""
Logger "Launching command [$cmd]." "DEBUG" Logger "Launching command [$cmd]." "DEBUG"
eval "$cmd" & eval "$cmd" &
ExecTasks $! "${FUNCNAME[0]}" false 0 0 $SOFT_MAX_EXEC_TIME_TOTAL $HARD_MAX_EXEC_TIME_TOTAL true $SLEEP_TIME $KEEP_LOGGING ExecTasks $! "${FUNCNAME[0]}" false 0 0 $SOFT_MAX_EXEC_TIME_TOTAL $HARD_MAX_EXEC_TIME_TOTAL true $SLEEP_TIME $KEEP_LOGGING
@ -643,7 +643,7 @@ include #### DEBUG SUBSET ####
include #### TrapError SUBSET #### include #### TrapError SUBSET ####
include #### RemoteLogger SUBSET #### include #### RemoteLogger SUBSET ####
cmd="du -cs \"$dirList\" | tail -n1 | cut -f1" cmd="du -cs $dirList | tail -n1 | cut -f1"
eval "$cmd" eval "$cmd"
retval=$? retval=$?
if [ $retval != 0 ]; then if [ $retval != 0 ]; then