summaryrefslogtreecommitdiff
path: root/bin/expand-annex-mboxes
diff options
context:
space:
mode:
Diffstat (limited to 'bin/expand-annex-mboxes')
-rwxr-xr-xbin/expand-annex-mboxes2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/expand-annex-mboxes b/bin/expand-annex-mboxes
index e12a574f..7800f021 100755
--- a/bin/expand-annex-mboxes
+++ b/bin/expand-annex-mboxes
@@ -19,7 +19,7 @@ our $expanded = "$ENV{HOME}/.fmail/annex";
# flock ourselves to ensure that only one copy of this script is ever running
open our $us, "<", $0 or die $!;
-exit 0 unless flock $us, LOCK_EX|LOCK_NB;
+exit 0 unless glob "$mboxes/*.gz" and flock $us, LOCK_EX|LOCK_NB;
make_path($expanded);
open my $touch_fh, '>', "$expanded/.duplicity-ignore";