public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb/gdb_mbuild.sh: use return instead of continue to avoid shellcheck error
@ 2022-07-28 14:31 Simon Marchi
  0 siblings, 0 replies; only message in thread
From: Simon Marchi @ 2022-07-28 14:31 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8727caedd18a93826a825efbfec33aea3b8f3109

commit 8727caedd18a93826a825efbfec33aea3b8f3109
Author: yaowenbin <yaowenbin1@huawei.com>
Date:   Thu Jul 28 17:22:47 2022 +0800

    gdb/gdb_mbuild.sh: use return instead of continue to avoid shellcheck error
    
    Fix:
    
        In gdb_mbuild.sh line 174:
                    continue
                    ^------^ SC2104 (error): In functions, use return instead of continue.
    
    Change-Id: I5ce95b01359c5cfbb1612f2f48b80bfeea66c96c

Diff:
---
 gdb/gdb_mbuild.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/gdb_mbuild.sh b/gdb/gdb_mbuild.sh
index 0d4c28e87b1..6a502369070 100755
--- a/gdb/gdb_mbuild.sh
+++ b/gdb/gdb_mbuild.sh
@@ -171,7 +171,7 @@ fail ()
 	if test "${keepgoing}" != ""
 	then
 	    #exit 1
-	    continue
+	    return 1
 	else
 	    kill $$
 	    exit 1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-28 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-28 14:31 [binutils-gdb] gdb/gdb_mbuild.sh: use return instead of continue to avoid shellcheck error Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).