Changed order of -s in the mail call for compatibility, from
[matthijs/upstream/backupninja.git] / src / ninjahelper.in
index 548b789afd5b26b8d892d5df1abcdc28d25865a8..01164611b1361cf7d8cf5a4ea42db4bfce918dc0 100755 (executable)
@@ -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 -L ${configdirectory} -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`; do
    menulist="$menulist $i $file"
    actions[$i]=$file
    let "i += 1"