summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mozclient/lib/MozClient/VCS.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mozclient/lib/MozClient/VCS.pm b/src/mozclient/lib/MozClient/VCS.pm
index f5b1b56..f5d1017 100644
--- a/src/mozclient/lib/MozClient/VCS.pm
+++ b/src/mozclient/lib/MozClient/VCS.pm
@@ -282,7 +282,12 @@ sub nobin_cleanup {
$self->chdir($self->work_dir . "/" . $self->{'MOZCLIENT_MOZDIRNAME'});
my $cmd = sprintf "sh %s > REMOVED+${nobinonly}.txt 2>&1",
$self->{'MOZCLIENT_EXCLUDE_SCRIPT'};
- $self->run_shell($cmd);
+ if (-e $self->{'MOZCLIENT_EXCLUDE_SCRIPT'}) {
+ $self->run_shell($cmd);
+ }
+ else {
+ $self->LOG("*warn* can't find " . $self->{'MOZCLIENT_EXCLUDE_SCRIPT'});
+ }
# Run a package specific clean-up script, if any
my $pkg_script = $self->{'MOZCLIENT_EXCLUDE_SCRIPT'};