1
0
mirror of https://github.com/PDP-10/its.git synced 2026-03-01 17:47:32 +00:00

Fix stamp.sh error calling git

- Problem: $1 is empty string inside shell function "timestamps"
 - Solution: Use $i loop variable (probably originally intended)
This commit is contained in:
Kevin Kahl
2025-04-11 19:47:42 -07:00
committed by Lars Brinkhoff
parent 1489766847
commit f46544d7df

View File

@@ -18,7 +18,7 @@ timestamps(){
t="$2"
TZ=EST
else
t=`git log -1 --date=format:%Y%m%d%H%M.%S --format=%cd -- "$1"`
t=`git log -1 --date=format:%Y%m%d%H%M.%S --format=%cd -- "$i"`
TZ="$OTZ"
fi
touch -h -t "$t" -- "$i"