diff mbox

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

Message ID 20170418155554.28732-4-etienne.phelip@savoirfairelinux.com
State Rejected
Headers show

Commit Message

Phelip Etienne April 18, 2017, 3:55 p.m. UTC
The \n polutes the output.

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

Patch

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