Recursively ignore subdirs in /etc/backup.d (Closes: #361102)
[matthijs/upstream/backupninja.git] / src / backupninja.in
index b0766eb17f62f6108744bb71f8c1ad37538738d3..2835a3c55950381b051c338050d1d968112eb77b 100755 (executable)
@@ -455,7 +455,7 @@ errormsg=""
 if [ "$singlerun" ]; then
        files=$singlerun
 else
-       files=`find $configdirectory -mindepth 1 ! -name '.*.swp' | sort -n`
+       files=`find $configdirectory -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`
 fi
 
 for file in $files; do