diff --git a/README.md b/README.md index 872ee4d..d84265e 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ apache alias. To configure this use `FILES_ROOT` in config.zsh. Bleeding edge is on GitHub. see https://github.com/dyne/webnomad -Pull requests may be welcome. +Pull requests and translations of this documentation are welcome. Come on IRC channel #dyne via https://irc.dyne.org to get in touch. diff --git a/index b/index index 448f800..45511f7 100755 --- a/index +++ b/index @@ -303,16 +303,19 @@ EOF index_long_preview() { dir="${1}" func "index_long_preview \"$dir\"" + func "index data: $archive/$dir" + func "index url: $url / $dir" + + { test -d "$archive/$dir" } || { error "cannot index: not a directory '$archive/$dir'"; return 1 } - { test -d "$dir" } || { error "cannot index: not a directory '$dir'"; return 1 } files=() - ttmp=`ls -l --time-style=long-iso "$dir" | awk ' + ttmp=`ls -l --time-style=long-iso "${archive}/${dir}" | awk ' /^total/ { next } /^$/ { next } { printf "files+=(\"%s;%s;%s\");", $8, $5, $6 } '` { test $? = 0 } || { - error "Error parsing directory: $dir" + error "Error parsing directory: ${archive}/${dir}" return 1 } eval "$ttmp" @@ -334,6 +337,24 @@ index_long_preview() {