Fixed error causing find to complain about not having -mindepth earlier
[matthijs/upstream/backupninja.git] / backupninja
index d52f4cdf45c9c76002b408d0ed446652c3d092f9..ea7304e115918c95f839b293dd4156cc6dac14f5 100755 (executable)
@@ -305,7 +305,7 @@ function process_action() {
        let "actions_run += 1"
 
        # call the handler:
-       [ if -x /bin/mktemp ]
+       if [ -x /bin/mktemp ]
        then
                local bufferfile=`mktemp /tmp/backupninja.buffer.XXXXXXXX`
        else
@@ -486,7 +486,7 @@ errormsg=""
 if [ "$singlerun" ]; then
        files=$singlerun
 else
-       files=`find $configdirectory ! -name '.*.swp' -mindepth 1 | sort -n`
+       files=`find $configdirectory -mindepth 1 ! -name '.*.swp' | sort -n`
 fi
 
 for file in $files; do