]> git.plutz.net Git - shellwiki/blobdiff - searchindex.sh
typo for verbose logging
[shellwiki] / searchindex.sh
index af120f603f26db95b84f095cdadc17c0cec6df25..6ddf24e45c317e2f44799d40932657a716be6d67 100755 (executable)
@@ -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