backupninja and ninjahelper: have find following symlinks for config files also work...
[matthijs/upstream/backupninja.git] / src / ninjahelper.in
index 01164611b1361cf7d8cf5a4ea42db4bfce918dc0..e9b4f9ee710c28e6be3ab670831db06a1f1998ab 100755 (executable)
@@ -257,7 +257,7 @@ while true; do
 menulist=
 action=
 let "i = 1"
-for file in `find -L ${configdirectory} -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`; do
+for file in `find ${configdirectory} -follow -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | sort -n`; do
    menulist="$menulist $i $file"
    actions[$i]=$file
    let "i += 1"