From 260d1570f3643db08b5f6a6458378bdca0d72e3f Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: Sep 25 2023 17:04:00 +0000 Subject: Form short commit hash using only shell builtins [skip changelog] --- diff --git a/python-nipy.spec b/python-nipy.spec index 749be47..8ffe0b3 100644 --- a/python-nipy.spec +++ b/python-nipy.spec @@ -14,7 +14,7 @@ %global snapdate 20230206 Name: python-nipy -Version: 0.5.0^%(echo '%{commit}' | cut -b -7)git%{snapdate} +Version: 0.5.0^%(c='%{commit}'; echo "${c:0:7}")git%{snapdate} Release: %autorelease Summary: Neuroimaging in Python FMRI analysis package