citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit e470c065fbaa6bfd897409e6da6047ca04830847
parent ad80c3f74022734e84853181aef2362ed5f6c714
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 27 Mar 2021 09:16:55 -0700

lessr: fix empty basename issue

Diffstat:
Mbin/lessr | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/bin/lessr b/bin/lessr @@ -3,6 +3,10 @@ dir=$(dirname "$1") base=$(basename "$1") +if [ "$base" == "" ]; then + exit 3 +fi + export LESSHISTFILE="$dir/.$base.hst" touch $LESSHISTFILE || :