dot

packages and services management
Log | Files | Refs | README

commit f5879c2c7278306c2a6fe45a966f8f82452cfac6
parent 2c1b0cdb784a313b983a24cec2c4c5cd75279b2f
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 13 Mar 2018 10:43:37 +0100

fixed twtxt timeline

Diffstat:
M.profile | 4++++
Mbin/twt | 4++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/.profile b/.profile @@ -44,6 +44,10 @@ export LESSHISTFILE="-" export MBLAZE="$HOME/.config/mblaze" +export TWT_CONF="$HOME/.config/twt" +export TWT_PATH="$HOME/var/twt" +export TWT_FEED="$HOME/srv/twt/josuah" + export PKG_PATH="https://ftp.fr.openbsd.org/pub/OpenBSD/" export SSH_AUTH_SOCK="/tmp/ssh-agent" diff --git a/bin/twt b/bin/twt @@ -100,7 +100,7 @@ BEGIN { END { sort(lines, 1, nb); - for (i = 1; i < nb; i++) { + for (i = 1; i <= nb; i++) { split(lines[i], twt, "\t"); printf("%-60s %s\n", twt[2], to_date("%04d/%02d/%02d %02d:%02d:%02d", twt[1])); @@ -145,7 +145,7 @@ case "$1" in (timeline) [ "$#" -ne 1 ] && exec "$0" ls "$TWT_PATH"/* 2> /dev/null 1>&2 || err 'no feed found, twt update' - awk "$show" "$TWT_PATH"/* + find "$TWT_PATH" -type f -exec awk "$show" {} + ;; (update) while read -r usr url