summaryrefslogtreecommitdiff
path: root/examples/cron
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-04-25 09:00:10 +0200
committerDaniel Baumann <daniel@debian.org>2008-04-25 09:00:10 +0200
commitd0533ecf81e379f76ff840189a19228bb8d7f6c9 (patch)
tree4322a0b9d1ce746482d0a1d1d34c0db6a535a66f /examples/cron
parentbd807ecc54a2127a208d57b30048eaa2a4486b43 (diff)
downloadvyos-live-build-d0533ecf81e379f76ff840189a19228bb8d7f6c9.tar.gz
vyos-live-build-d0533ecf81e379f76ff840189a19228bb8d7f6c9.zip
Adjusting obtaining of the date string in snapshots.sh to new git log date format.
Diffstat (limited to 'examples/cron')
-rwxr-xr-xexamples/cron/snapshots.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cron/snapshots.sh b/examples/cron/snapshots.sh
index f8e33050f..68011df61 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