X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=searchindex.sh;h=6ddf24e45c317e2f44799d40932657a716be6d67;hb=12fa6da13bb5c96df8326be6849aed484ff90959;hp=af120f603f26db95b84f095cdadc17c0cec6df25;hpb=c549e1de0245f399b219be8a2bdf1ee7d6152951;p=shellwiki diff --git a/searchindex.sh b/searchindex.sh index af120f6..6ddf24e 100755 --- a/searchindex.sh +++ b/searchindex.sh @@ -111,7 +111,7 @@ prune() { printf '%i %s %f %i %i\n' \ "$date" "$location" "$freq" "$num" "$total" elif [ "$verb" ]; then - printf "%${v}s\rRemoving \"%s\" from \"%s\"\n" "" "$location" "$word" >&2 + printf "\rRemoving \"%s\" from \"%s\"\n" "$location" "${word##*/}" >&2 fi done <"${word}.$$" >>"${word}" rm -- "${word}.$$" @@ -134,7 +134,7 @@ index() { -o -f "$_DATA/pages/$PATH_INFO/#page.md" \ -a ! -f "$_DATA/pages/$PATH_INFO/#index.flag" ] 2>&- then - [ "$verb" ] && printf "%${v}s\r%s\r" "$PATH_INFO" >&2 + [ "$verb" ] && printf "%${v}s\r%s\r" "" "$PATH_INFO" >&2 v="${#PATH_INFO}" "$_EXEC/parsers/40_indexer.sh" <"$_DATA/pages/$PATH_INFO/#page.md" >/dev/null fi