summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-09-15 18:41:52 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-09-24 04:26:37 +0200
commit4969c142a57cab544604319934a69c1362bc3770 (patch)
treec380b9f616b891d36049e0d6d572036b6a016194
parent21774bb18947fe1fac6a59f8fef4a61b152a9794 (diff)
downloadvendor_replicant-4969c142a57cab544604319934a69c1362bc3770.tar.gz
vendor_replicant-4969c142a57cab544604319934a69c1362bc3770.tar.bz2
vendor_replicant-4969c142a57cab544604319934a69c1362bc3770.zip
build.sh: usage: fix non-optional argument
Without that fix the help looks like that: ./build.sh [espresso3g|espressowifi|i9100|i9300|i9305|maguro|...] The issue here is that square brackets are commonly used to indicate optional arguments, but here an argument is required. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rwxr-xr-xbuild.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.sh b/build.sh
index e9fa57f6..645e5472 100755
--- a/build.sh
+++ b/build.sh
@@ -30,11 +30,11 @@ supported_machines=" \
usage()
{
- printf "%s [" "$0"
+ printf "%s <" "$0"
for machine in ${supported_machines} ; do
printf "${machine}|"
done
- printf "\b]\n"
+ printf "\b>\n"
printf "%s all # build all machines\n" "$0"
exit 1
}