[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnu-arch-users] tla-munge-archive-names
From: |
Carlo Contavalli |
Subject: |
[Gnu-arch-users] tla-munge-archive-names |
Date: |
Fri, 10 Sep 2004 12:46:26 +0200 |
Is this the right place? Well, however:
--- /usr/bin/tla-munge-archive-names 2004-05-25 17:38:25.000000000 +0200
+++ tla-munge-archive-names 2004-09-09 15:31:08.000000000 +0200
@@ -935,7 +935,7 @@
# Clean up empty directories
prune_empty_dirs "$@" -name '[a-zA-Z0-9]*'
-if test `wc -l < "$CACHED_REVS"` -gt 0; then
+if test -f "$CACHED_REVS" && test `wc -l < "$CACHED_REVS"` -gt 0; then
echo "* recreating cached revisions..."
$SED "$MUNGE_SED_CMD" "$CACHED_REVS" | while read cached_rev; do
$TLA cacherev "$cached_rev"
Otherwise, the script fails under some conditions.
Cheers,
Carlo
--
GPG Fingerprint: 2383 7B14 4D08 53A4 2C1A CA29 9E98 5431 1A68 6975
-------------
The wages of sin are unreported.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnu-arch-users] tla-munge-archive-names,
Carlo Contavalli <=