diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-09-15 18:41:52 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2020-09-24 04:26:37 +0200 |
commit | 4969c142a57cab544604319934a69c1362bc3770 (patch) | |
tree | c380b9f616b891d36049e0d6d572036b6a016194 | |
parent | 21774bb18947fe1fac6a59f8fef4a61b152a9794 (diff) | |
download | vendor_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-x | build.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |