From 66ed83a51f7752464befbb48c08759293da32b4c Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 22 Apr 2016 06:32:59 +0000 Subject: Don't use head -c -1; it's not portable --- scripts/commit.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/commit.rc') diff --git a/scripts/commit.rc b/scripts/commit.rc index 21789d72..feb0f4ac 100644 --- a/scripts/commit.rc +++ b/scripts/commit.rc @@ -13,6 +13,6 @@ cd $repo if([ -f refs/heads/$branch ]) parent=(-p $branch) if not parent=() -ifs=() { message='oasis built by '`{id -un | head -c -1} } +message='oasis built by '`{id -un} commit=`{echo $message | git commit-tree $tag $parent} ; checkstatus git update-ref refs/heads/$branch $commit -- cgit v1.2.3