[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH initramfs-tools 05/11] update-initramfs: Fix error message in case of excess arguments



Closes: #627547
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
---
 update-initramfs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update-initramfs b/update-initramfs
index 998eaf0..3a432b6 100755
--- a/update-initramfs
+++ b/update-initramfs
@@ -439,7 +439,7 @@ done
 shift $((${OPTIND} - 1))
 
 if [ $# -ne 0 ]; then
-	echo "Invalid argument for option -k." >&2
+	printf "Extra argument '%s'\n\n" "$1" >&2
 	usage
 fi
 


-- 
Ben Hutchings
Life is what happens to you while you're busy making other plans.
                                                               - John Lennon

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: