commit fba0a9b547a3462d65a45ec93f78a07da58beabf
parent 6daf57a8e6d1cee99c8834b0067c53ef782bd7cc
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 1 May 2022 11:06:45 +0200
config.sh: fix unknown opt handling
Fixes: https://todo.sr.ht/~sircmpwn/hare/669
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/config.sh b/config.sh
@@ -39,7 +39,8 @@ do
SYSCONFDIR=${arg#*=}
;;
*)
- option "$arg"
+ printf 'Error: unknown configure option %s\n' "$arg" >&2
+ exit 1
;;
esac
done