[pacman-dev] [PATCH 1/3] parse_options: add missing newlines

Allan McRae allan at archlinux.org
Tue Jul 5 07:51:29 EDT 2011


Signed-off-by: Allan McRae <allan at archlinux.org>
---
 scripts/library/parse_options.sh |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/library/parse_options.sh b/scripts/library/parse_options.sh
index 5ced260..9622230 100644
--- a/scripts/library/parse_options.sh
+++ b/scripts/library/parse_options.sh
@@ -25,7 +25,7 @@ parse_options() {
 							shift
 							printf " '%s'" "$1"
 						else
-							printf "@SCRIPTNAME@: $(gettext "option %s requires an argument")" "'$1'" >&2
+							printf "@SCRIPTNAME@: $(gettext "option %s requires an argument\n")" "'$1'" >&2
 							ret=1
 						fi
 					fi
@@ -50,7 +50,7 @@ parse_options() {
 								shift
 								printf " '%s'" "${1}"
 							else
-								printf "@SCRIPTNAME@: $(gettext "option %s requires an argument")" "'-${1:i:1}'" >&2
+								printf "@SCRIPTNAME@: $(gettext "option %s requires an argument\n")" "'-${1:i:1}'" >&2
 								ret=1
 							fi
 						fi
-- 
1.7.6



More information about the pacman-dev mailing list