You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2026/10/05 15:22:33 UTC
(comdev-metrics) branch main updated: Preserve 1st param
This is an automated email from the ASF dual-hosted git repository.
sebbASF pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/comdev-metrics.git
The following commit(s) were added to refs/heads/main by this push:
new 36908d0 Preserve 1st param
36908d0 is described below
commit 36908d0c6110c0f0886b557ac5dbfb7287466499
Author: Sebb <se...@apache.org>
AuthorDate: Mon Oct 5 16:22:24 2026 +0100
Preserve 1st param
---
build.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/build.sh b/build.sh
index 6e23e6a..823f817 100755
--- a/build.sh
+++ b/build.sh
@@ -2,7 +2,8 @@
# build the site
-echo "Started $1 build at $(date)"
+OPT=$1
+echo "Started $OPT build at $(date)"
# Make sure there is a config file
test -r config.yml || cp config.example.yml config.yml
@@ -10,7 +11,7 @@ test -r config.yml || cp config.example.yml config.yml
PATH=$PATH:/usr/local/bin # needed for cron jobs
# Provide shortcuts
-case "$1" in
+case "$OPT" in
weekly)
shift
# always refresh the repos for the weekly run
@@ -30,4 +31,4 @@ case "$1" in
;;
esac
-echo "Ended $1 build at $(date)"
+echo "Ended $OPT build at $(date)"