Fixed error causing find to complain about not having -mindepth earlier
[matthijs/upstream/backupninja.git] / backupninja
index b91d2c885dd0e5bec2348f4605425365c822201d..ea7304e115918c95f839b293dd4156cc6dac14f5 100755 (executable)
@@ -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