Add fix from anarcat for ${configdirectory} in ninjahelper, also add -L to find to...
[matthijs/upstream/backupninja.git] / src / ninjahelper.in
index 3aef3f655aa50973e6dcac3caffb2be69af2fd35..01164611b1361cf7d8cf5a4ea42db4bfce918dc0 100755 (executable)
@@ -257,7 +257,7 @@ while true; do
 menulist=
 action=
 let "i = 1"
-for file in `find $conf/etc/backup.d/ -mindepth 1 -maxdepth 1 -type f ! -name '.*.swp' | 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"