Skip to content

Commit f46544d

Browse files
kahlkevinlarsbrinkhoff
authored andcommitted
Fix stamp.sh error calling git
- Problem: $1 is empty string inside shell function "timestamps" - Solution: Use $i loop variable (probably originally intended)
1 parent 1489766 commit f46544d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/stamp.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ timestamps(){
1818
t="$2"
1919
TZ=EST
2020
else
21-
t=`git log -1 --date=format:%Y%m%d%H%M.%S --format=%cd -- "$1"`
21+
t=`git log -1 --date=format:%Y%m%d%H%M.%S --format=%cd -- "$i"`
2222
TZ="$OTZ"
2323
fi
2424
touch -h -t "$t" -- "$i"

0 commit comments

Comments
 (0)