From 3ed77fd41b4ec0421b887afd1c021272e07a5a11 Mon Sep 17 00:00:00 2001 From: poikilos <7557867+poikilos@users.noreply.github.com> Date: Sun, 30 Jul 2023 20:36:34 -0400 Subject: [PATCH] Add usage. Improve output. --- install-minetest-build-deps.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/install-minetest-build-deps.sh b/install-minetest-build-deps.sh index 59acadd..747d1bf 100755 --- a/install-minetest-build-deps.sh +++ b/install-minetest-build-deps.sh @@ -2,6 +2,18 @@ # Do not use sudo, in case sudo is not installed (such as in some # default installations including the dyne/devuan:chimaera docker image # on docker hub. +me=`basename $0` +usage(){ + cat <&2 echo "Error:" echo "$1" @@ -26,6 +38,9 @@ do elif [ "$arg" = "leveldb" ]; then enable_leveldb="true" fi done +usage +echo +echo "Current Options:" echo "enable_postgres:$enable_postgres" echo "enable_redis:$enable_redis" echo "enable_leveldb:$enable_leveldb"