From d86c784131599c29f5c9aba111b40c43c917d9c3 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Thu, 26 Dec 2024 10:59:43 +0800 Subject: [PATCH] Fix error message display for unknown options `warn` is defined after its usage. Fixes #919. --- install.sh | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/install.sh b/install.sh index 23dcc914..f3a0804b 100755 --- a/install.sh +++ b/install.sh @@ -39,28 +39,6 @@ then abort 'Bash must not run in POSIX mode. Please unset POSIXLY_CORRECT and try again.' fi -usage() { - cat <&2 } +usage() { + cat <