From 77bfeea29daa4fa8315e839a7f22bc342f675320 Mon Sep 17 00:00:00 2001 From: Gary Sneed Date: Fri, 25 Oct 2024 21:14:02 -0700 Subject: Improve usage information --- get_version.sh | 2 +- launch.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/get_version.sh b/get_version.sh index 8e777eb..cae7101 100755 --- a/get_version.sh +++ b/get_version.sh @@ -3,7 +3,7 @@ # Only accepts 1 argument: the Minecraft version to download LOOOKING_FOR= if [ -z "${1}" ]; then - echo "ERROR: Requires one argument (the Minecraft instance to launch)" + echo "usage: ${0} " exit 1 else LOOKING_FOR="${1}" diff --git a/launch.sh b/launch.sh index b253720..596990b 100755 --- a/launch.sh +++ b/launch.sh @@ -5,7 +5,8 @@ PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]') # Only accepts 1 argument: the Minecraft profile to launch INAME= if [ -z "${1}" ]; then - echo "ERROR: Requires one argument (the Minecraft instance to launch)" + echo "usage: ${0} " + echo 'note: Make sure you downloaded a version first with get_version.sh' exit 1 else INAME="${1}" -- cgit v1.2.3