~sotirisp/public-inbox

Use the -a flag instead of && v1 SUPERSEDED

Thomas Voss: 1
 Use the -a flag instead of &&

 1 files changed, 1 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sotirisp/public-inbox/patches/35632/mbox | git am -3
Learn more about email & git

[PATCH] Use the -a flag instead of && Export this patch

---
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