~sotirisp/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Use the -a flag instead of &&

Thomas Voss <mail@thomasvoss.com>
Details
Message ID
<20220927123128.11359-1-mail@thomasvoss.com>
DKIM signature
missing
Download raw message
Patch: +1 -1
---
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
Details
Message ID
<YzMgTSqVXWp4IKnq@desktop.home>
In-Reply-To
<20220927123128.11359-1-mail@thomasvoss.com> (view parent)
DKIM signature
missing
Download raw message
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
Reply to thread Export thread (mbox)