summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2022-01-03 11:29:11 -0500
committerluckytyphlosion <10688458+luckytyphlosion@users.noreply.github.com>2022-01-03 11:29:11 -0500
commit9f762735d7e65956861cab25bcf4f802a7c1c441 (patch)
tree69b079417199777a6bfe7d7600350e4b89ef9d31
parent1fcda818cb15f3f07dc5796f4a0ea6dccd10f95d (diff)
Better install.sh error messages.
-rwxr-xr-xinstall.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 818deae..a258c46 100755
--- a/install.sh
+++ b/install.sh
@@ -14,7 +14,11 @@ if [ "$1" != "" ]; then
cp libgcc.a $1/tools/agbcc/lib/
cp libc.a $1/tools/agbcc/lib/
else
- echo "Target directory does not exist. Did you mean to do \"./install.sh ../$1\"?"
+ if [ -d "../$1" ]; then
+ echo "Target directory does not exist. Did you mean to do \"./install.sh ../$1\"?"
+ else
+ echo "Target directory does not exist. If you aren't familiar with relative paths, make sure that agbcc and $1 are in the same directory, and run \"./install.sh ../$1\" again."
+ fi
fi
else
echo "Usage: install.sh PATH"