X-Git-Url: https://git.exim.org/buildfarm-client.git/blobdiff_plain/707a4894cb762d150f48663ae8034224dfca183f..96445fd354298e32feffae810de2136050915c62:/run_cron diff --git a/run_cron b/run_cron index caadf4b..278084e 100755 --- a/run_cron +++ b/run_cron @@ -11,7 +11,8 @@ chdir $Bin or die "$0: Can't chdir '$Bin': $!\n"; # client installation. FIXME: What to do, if we have # a 'detached' .git? if (-d '.git') { - my ($git) = grep { -x } map { "$_/git" } split /:/, $ENV{PATH}; + die "$0: found .git dir, but git is not available\n" + if not grep { -x } map { "$_/git" } split /:/, $ENV{PATH}; system('git pull >/dev/null') == 0 or die $? >> 8; }