diff options
author | Daniel Baumann <daniel@debian.org> | 2008-04-25 09:00:10 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 19:03:33 +0100 |
commit | ca342d024339ff47ec059ad9434c640fb5292aff (patch) | |
tree | 4322a0b9d1ce746482d0a1d1d34c0db6a535a66f | |
parent | 7ec94de6459a6184f9bbe811046fac9618d60474 (diff) | |
download | live-build-ca342d024339ff47ec059ad9434c640fb5292aff.zip live-build-ca342d024339ff47ec059ad9434c640fb5292aff.tar.gz |
Adjusting obtaining of the date string in snapshots.sh to new git log date format.
-rwxr-xr-x | examples/cron/snapshots.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh index f8e3305..68011df 100755 --- a/examples/cron/snapshots.sh +++ b/examples/cron/snapshots.sh @@ -87,7 +87,7 @@ do # Getting revision cd "${TEMPDIR}"/${PACKAGE} - REVISION="$(git log | grep -m1 Date | awk -FDate: '{ print $2 }' | sed -e 's/+.*$//')" + REVISION="$(git log | grep -m1 Date | awk -FDate: '{ print $2 }' | awk '{ print $1 ",", $3, $2, $5, $4, $6 }')" REVISION="$(date -d "${REVISION}" +%Y%m%d.%H%M%S)" # Check for existing package |