Patchwork [meta-fsl-arm,2/2] scripts/get-maintainer: use `exit' instead of `return'

login
register
mail settings
Submitter Mario Domenech Goulart
Date April 25, 2014, 1:38 p.m.
Message ID <1398433137-22317-2-git-send-email-mario@ossystems.com.br>
Download mbox | patch
Permalink /patch/70961/
State Accepted
Delegated to: Otavio Salvador
Headers show

Comments

Mario Domenech Goulart - April 25, 2014, 1:38 p.m.
`return' can only be used from within function scope or from source'd
scripts.

Signed-off-by: Mario Domenech Goulart <mario@ossystems.com.br>
---
 scripts/get-maintainer |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/scripts/get-maintainer b/scripts/get-maintainer
index 1c5be02..5b82e35 100755
--- a/scripts/get-maintainer
+++ b/scripts/get-maintainer
@@ -47,7 +47,7 @@  done
 
 if [ -z "$path" ]; then
 	usage
-	return 1
+	exit 1
 fi
 
 maintained=`mktemp`