From 8776e3a3e37ee8a5b6d924dc202b61501c2afea7 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Tue, 30 May 2006 03:41:39 +0000 Subject: ninjahelper: Recursively ignore subdirs in /etc/backup.d (Finally Closes: #361102) --- src/ninjahelper.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ninjahelper.in b/src/ninjahelper.in index 548b789..3aef3f6 100755 --- a/src/ninjahelper.in +++ b/src/ninjahelper.in @@ -257,7 +257,7 @@ while true; do menulist= action= let "i = 1" -for file in `find $conf/etc/backup.d/ -type f | sort -n`; do +for file in `find $conf/etc/backup.d/ -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`; do menulist="$menulist $i $file" actions[$i]=$file let "i += 1" -- cgit v1.2.3