[Buildroot] [RFC 3/4] genimage.sh: strip getopts EOL characters

Etienne Phelip etienne.phelip at savoirfairelinux.com
Tue Apr 18 15:55:53 UTC 2017


The \n polutes the output.

Signed-off-by: Etienne Phelip <etienne.phelip at savoirfairelinux.com>
---
 support/scripts/genimage.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/support/scripts/genimage.sh b/support/scripts/genimage.sh
index 6f9102c..50d6907 100755
--- a/support/scripts/genimage.sh
+++ b/support/scripts/genimage.sh
@@ -13,8 +13,8 @@ shift
 while getopts :c: OPT ; do
 	case "${OPT}" in
 	c) GENIMAGE_CFG="${OPTARG}";;
-	:) die "option '${OPTARG}' expects a mandatory argument\n";;
-	\?) die "unknown option '${OPTARG}'\n";;
+	:) die "option '${OPTARG}' expects a mandatory argument";;
+	\?) die "unknown option '${OPTARG}'";;
 	esac
 done
 
-- 
2.9.3




More information about the buildroot mailing list