---
By using the -a flag, we save an additional invokation of [ making this
a little bit more efficient. Also sorry for the double-send, I'm new to
all this sourcehut jazz and am not entirely sure where you're meant to
send patches :P
today | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/today b/today
index 7654be2..e6c8a91 100755
--- a/today+++ b/today
@@ -132,7 +132,7 @@ TODAY_SUFFIX=${TODAY_SUFFIX-.gmi}
if [ "$#" -eq 0 ]
then
set -- "$(today)"
-elif [ "$#" -eq 1 ] && [ "$1" = 'prev' ]+elif [ "$#" -eq 1 -a "$1" = 'prev' ]then
set -- "$(prevdate)"
fi
--
2.37.3
No worries, I'm new to git over email as well. You sent the patch to the
correct list.
Thanks for the patch but I just pushed a new version that removes the
prev command (I wasn't using it) so it's no longer required.
Sorry for the double email myself, I forgot to reply to the list. :D