lb

Script that generates my blog system and RSS feed
Log | Files | Refs | README | LICENSE

commit c29080a25e4baa28155315441187d25fb46bb916
parent 66e2a7a1eda6d835266d8ad62270d87b50ee488c
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue, 28 Jul 2020 10:04:28 -0400

fix #40

Diffstat:
Mlb | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lb b/lb @@ -34,7 +34,7 @@ listandReturn() { *) ls -rc "$1" | awk -F '/' '{print $NF}' | nl read -erp "Pick an entry by number to $2, or press Ctrl-C to cancel. " number ;; esac - chosen="$(ls -rc "$1" | nl | grep -w "$number" | awk '{print $2}')" + chosen="$(ls -rc "$1" | nl | grep -w " $number" | awk '{print $2}')" basefile="$(basename "$chosen")" && base="${basefile%.*}" }