Use /usr/bin/env perl instead of /usr/bin/perl
[buildfarm-client.git] / run_branches
index e1d0b9e0d5026797fb3c4b159d99982e239f308d..8ee1f9f03edb6ea91c7ecf442e874c819636ba8e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/env perl
 
 =comment
 
@@ -100,6 +100,7 @@ if (not exists $EximBuild::Conf{auto_update} or $EximBuild::Conf{auto_update})
        else {
            # if we're the merge base, the ff-only should work
            system('git pull --ff-only') == 0 or die $? >> 8;
+
            say "$0: re-execute after update";
            chdir $CALLED{cwd} or die "$0: Can't chdir to $CALLED{cwd}: $!\n";
            exec $CALLED{argv0}, @{$CALLED{argv}};