]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* lock-and-run.sh: Tweak command order.
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Oct 2019 03:30:48 +0000 (03:30 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 22 Oct 2019 03:30:48 +0000 (03:30 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277279 138bc75d-0d04-0410-961f-82ee72b054a4

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