* lock-and-run.sh: Tweak command order.
authorJason Merrill <jason@gcc.gnu.org>
Tue, 22 Oct 2019 03:30:48 +0000 (23:30 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 22 Oct 2019 03:30:48 +0000 (23:30 -0400)
From-SVN: r277279

gcc/lock-and-run.sh

index 22bc436565cc0dee76202a3248cdc3ad253642a1..a1360adab52d847d9f211c3bff59811c760c72d6 100644 (file)
@@ -12,8 +12,9 @@ count=0
 
 err () {
     if test -f $lockdir/lock-$1.$$; then
-       echo "$self: *** (PID $$) removing stale $lockdir" >&2
        rm -rf $lockdir
+       echo "$self: *** (PID $$) removed stale $lockdir" >&2
+
        # Possible variant for uses where races are more problematic:
        #echo "$self: *** (PID $$) giving up, maybe rm -r $lockdir" >&2
        #exit 42