From de7ba8f9d4a96f5df00b02ecdacffd3f341b5530 Mon Sep 17 00:00:00 2001 From: Benjamin A. Beasley Date: May 25 2023 12:49:00 +0000 Subject: Form the short commit hash with only shell builtins [skip changelog] --- diff --git a/gn.spec b/gn.spec index 33b59bc..59a91f0 100644 --- a/gn.spec +++ b/gn.spec @@ -29,7 +29,7 @@ Name: gn # See https://gn.googlesource.com/gn/+log for the latest changes. %global commit e9e83d9095d3234adf68f3e2866f25daf766d5c7 %global access 20230521 -%global shortcommit %(echo '%{commit}' | cut -b -12) +%global shortcommit %(c='%{commit}'; echo "${c:0:12}") %global position 2105 Version: %{position}^%{access}git%{shortcommit} Release: %autorelease