From 3eca41ea07ac53abc3379294fad6137dce5153c5 Mon Sep 17 00:00:00 2001 From: xqt Date: Thu, 2 May 2024 11:41:16 +0200 Subject: [PATCH] [IMPR] use rev-list --count instead of wc pipe command --- nightly | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nightly b/nightly index 5af6897..e22a3dd 100755 --- a/nightly +++ b/nightly @@ -19,7 +19,7 @@ pip install -U pip setuptools # Create version file function create_version { echo "$1" > $2 - git rev-list HEAD | wc -l >> $2 + git rev-list HEAD --count >> $2 date +%Y-%m-%dT%H:%M:%S >> $2 git rev-parse --short HEAD >> $2 }