You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/07/25 15:19:25 UTC

(tooling-docs) branch main updated (3440884 -> ea6635f)

This is an automated email from the ASF dual-hosted git repository.

sbp pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-docs.git


    from 3440884  Add some notes about running the Pelican GHA locally
     new abdd110  Add shellcheck to pre-commit lints
     new ea6635f  Fix shellcheck lints of pagefind.sh

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .pre-commit-config.yaml |  4 ++++
 pagefind.sh             | 10 +++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


(tooling-docs) 01/02: Add shellcheck to pre-commit lints

Posted by sb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-docs.git

commit abdd110231a639d53ad64958d6d36eb467c89521
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Fri Jul 25 16:18:57 2025 +0100

    Add shellcheck to pre-commit lints
---
 .pre-commit-config.yaml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c8d8f04..8a0b631 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -44,6 +44,10 @@ repos:
         args: [--config=.github/linters/.markdown-lint.yml]
         types: [markdown]
         files: \.md$
+  - repo: https://github.com/shellcheck-py/shellcheck-py
+    rev: v0.10.0.1
+    hooks:
+      - id: shellcheck
   - repo: https://github.com/adrienverge/yamllint
     rev: v1.37.1
     hooks:


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org


(tooling-docs) 02/02: Fix shellcheck lints of pagefind.sh

Posted by sb...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-docs.git

commit ea6635f3b59421c68c1fee416880df64970c700a
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Fri Jul 25 16:19:10 2025 +0100

    Fix shellcheck lints of pagefind.sh
---
 pagefind.sh | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/pagefind.sh b/pagefind.sh
index 283b5dc..851d5d2 100755
--- a/pagefind.sh
+++ b/pagefind.sh
@@ -37,11 +37,11 @@ then
     BINDIR=$(mktemp -d)
     TARGET=${BINDIR}/pagefind.tar.gz
     OS_TYPE=x86_64-unknown-linux-musl
-    time wget --quiet -O ${TARGET} https://github.com/CloudCannon/pagefind/releases/download/v${PAGEFIND_VERSION}/pagefind-v${PAGEFIND_VERSION}-${OS_TYPE}.tar.gz
-    echo "${PAGEFIND_HASH}  ${TARGET}" > ${TARGET}.sha256
-    if shasum -a 256 -c ${TARGET}.sha256
+    time wget --quiet -O "${TARGET}" "https://github.com/CloudCannon/pagefind/releases/download/v${PAGEFIND_VERSION}/pagefind-v${PAGEFIND_VERSION}-${OS_TYPE}.tar.gz"
+    echo "${PAGEFIND_HASH}  ${TARGET}" > "${TARGET}.sha256"
+    if shasum -a 256 -c "${TARGET}.sha256"
     then
-        tar -C ${BINDIR} -xkf ${TARGET}
+        tar -C "${BINDIR}" -xkf "${TARGET}"
     else
         echo "Failed to download pagefind correctly"
         exit 1
@@ -50,4 +50,4 @@ then
 fi
 
 echo "Running pagefind on ${PELICAN_OUTPUT_PATH}"
-${PAGEFIND} --site ${PELICAN_OUTPUT_PATH} --output-subdir "_pagefind"
+${PAGEFIND} --site "${PELICAN_OUTPUT_PATH}" --output-subdir "_pagefind"


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org