From 7a3b52d9a568dc7a79b44155b701ab47e2f54ff1 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 2 Jan 2010 21:28:15 +0100 Subject: Always create .project/trace at the end Signed-off-by: Joerg Jaspert --- bin/websync | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'bin/websync') diff --git a/bin/websync b/bin/websync index 0d89f9d..bcb2e52 100755 --- a/bin/websync +++ b/bin/websync @@ -278,11 +278,10 @@ while [ -e "${UPDATEREQUIRED}" ]; do done -if [ -d "`dirname "${TO}/${TRACE}"`" ]; then - LC_ALL=POSIX LANG=POSIX date -u > "${TO}/${TRACE}" - echo "Used websync version: ${VERSION}" >> "${TO}/${TRACE}" - echo "Running on host: $(hostname -f)" >> "${TO}/${TRACE}" -fi +mkdir -p "${TO}/.project/trace" +LC_ALL=POSIX LANG=POSIX date -u > "${TO}/${TRACE}" +echo "Used websync version: ${VERSION}" >> "${TO}/${TRACE}" +echo "Running on host: $(hostname -f)" >> "${TO}/${TRACE}" HOOK=( HOOKNR=3 -- cgit v1.2.3