summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoerg Jaspert <joerg@debian.org>2010-01-02 21:28:15 +0100
committerJoerg Jaspert <joerg@debian.org>2010-01-02 21:28:15 +0100
commit7a3b52d9a568dc7a79b44155b701ab47e2f54ff1 (patch)
treed03cd022c213dfbb19db41afd9a720cbce8e7cb5
parentc7696b5c7b2e9f033536e57b6cf2beee281ec5bf (diff)
Always create .project/trace at the end
Signed-off-by: Joerg Jaspert <joerg@debian.org>
-rwxr-xr-xbin/websync9
1 files changed, 4 insertions, 5 deletions
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