commit 06617355fe79a8b678d65df89e41792168669ea5 parent ea24d7d736f7dd809743daf3578eccd6d86bef42 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Fri, 18 Feb 2022 15:55:41 +0100 solstice: minor update of the solstice_build.sh script Diffstat:
| M | solstice/solstice_build.sh | | | 11 | ++++++----- |
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/solstice/solstice_build.sh b/solstice/solstice_build.sh @@ -20,8 +20,8 @@ # Build the overview page overview() { - if [ -z "$1" ]; then - printf "Usage: %s overview <version>\n" "$0" + if [ $# -lt 1 ]; then + printf "Usage: %s overview <version>\n" "$0" >&2 exit 1 fi @@ -44,7 +44,8 @@ downloads() } > solstice-downloads.html } -print_pp_downloads() { +print_pp_downloads() +{ echo "<table>" echo " <tr>" echo " <th>Version</th>" @@ -72,8 +73,8 @@ print_pp_downloads() { # Build the resources page resources() { - if [ -z "$1" ]; then - printf "Usage: %s resources <version>\n" "$0" + if [ $# -lt 1 ]; then + printf "Usage: %s resources <version>\n" "$0" >&2 exit 1 fi