summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Sneed <gary@getcobalt.org>2024-10-25 21:14:02 -0700
committerGary Sneed <gary@getcobalt.org>2024-10-25 21:14:02 -0700
commit77bfeea29daa4fa8315e839a7f22bc342f675320 (patch)
tree8a420254885925fc8cf94e8cb6c8b19bcc051593
parent2248e57c52771e3c5b2905ebf0c9d2ec18e88113 (diff)
Improve usage information
-rwxr-xr-xget_version.sh2
-rwxr-xr-xlaunch.sh3
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} <version>"
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} <version>"
+ echo 'note: Make sure you downloaded a version first with get_version.sh'
exit 1
else
INAME="${1}"