fix paths to be relative
authorDomagoj Tršan <domagoj.trsan@calyx.hr>
Thu, 12 Apr 2012 09:01:28 +0000 (11:01 +0200)
committerDobrica Pavlinusic <dpavlin@rsync1.maxxo.com>
Thu, 12 Apr 2012 09:01:28 +0000 (11:01 +0200)
gearman/list_files

index d4ce693..03fae20 100755 (executable)
@@ -6,7 +6,7 @@ while read path ; do
        if [ -e $path/.meta/files ] ; then
                cat $path/.meta/files
        else
-               find -L $path -printf "%y %s %p\n" | tee $path/.meta/files.new && mv $path/.meta/files.new $path/.meta/files
+               cd $path && find -L . -printf "%y %s %p\n" | tee $path/.meta/files.new && mv $path/.meta/files.new $path/.meta/files
        fi
        echo `date +%Y-%m-%d.%H:%M:%S`" list_files [$path] END" >&2
 done