From 5897bc228214bdb952faf8cb5b6c0e2158046033 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 14 Jun 2024 10:50:00 +0200 Subject: [PATCH] Add ./Config -h / -help Suggested by hnj in https://bugs.unrealircd.org/view.php?id=6417 [skip ci] --- Config | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Config b/Config index 549db1395..f77d2fbe8 100755 --- a/Config +++ b/Config @@ -264,7 +264,7 @@ NOINTRO="" QUICK="" ADVANCED="" while [ $# -ge 1 ] ; do - if [ $1 = "--help" ] ; then + if [ "$1" = "-help" -o "$1" = "--help" -o "$1" = "-h" ] ; then echo "Config utility for UnrealIRCd" echo "-----------------------------" echo "Syntax: ./Config [options]" @@ -272,9 +272,9 @@ while [ $# -ge 1 ] ; do echo "-quick Skip questions, go straight to configure" echo "-advanced Include additional advanced questions" exit 0 - elif [ $1 = "-nointro" ] ; then + elif [ "$1" = "-nointro" ] ; then NOINTRO="1" - elif [ $1 = "-quick" -o $1 = "-q" ] ; then + elif [ "$1" = "-quick" -o "$1" = "-q" ] ; then QUICK="1" echo "running quick config" if [ -f "config.settings" ] ; then @@ -284,7 +284,7 @@ while [ $# -ge 1 ] ; do RUN_CONFIGURE cd "$UNREALCWD" exit 0 - elif [ $1 = "-advanced" ] ; then + elif [ "$1" = "-advanced" ] ; then PREADVANCED="1" fi shift 1