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/tree.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/tree.rc') diff --git a/scripts/tree.rc b/scripts/tree.rc index 12bf9c32..d42f5bd6 100644 --- a/scripts/tree.rc +++ b/scripts/tree.rc @@ -8,7 +8,7 @@ index=$3 fn checkstatus {} -ifs=() { oldcwd=`{pwd | head -c -1} } +oldcwd=`{pwd} cd $repo git read-tree --empty -- cgit v1.2.3