fix: shellcheck clean; remote/*.sh is checked too
CI / check (pull_request) Successful in 47s

SC2029 at the database step is intended: mode, services and version expand on
the client side. CI now runs shellcheck on remote/database.sh as well.
This commit is contained in:
Christian Manivong committed 2026-10-21 00:03:45 +02:00
1 parent 6e3ecb8680
commit 4d3a7eb1f4
2 files changed
+2 -1

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
run: pip install pytest==9.1.1 ruff==0.16.9 shellcheck-py==0.11.0.1
- name: shellcheck
run: shellcheck deploy.sh
run: shellcheck deploy.sh remote/*.sh
- name: ruff
run: |
+1
View File
@@ -367,6 +367,7 @@ REMOTE_ENV
# goes over stdin, so the host needs nothing but bash and docker.
echo "[${SERVER}] Reconciling the database (${DATABASE_MODE})..."
local db_status=0
# shellcheck disable=SC2029 # mode, services and version expand here on purpose
ssh "$SERVER" "REGISTRY_HOST='${REGISTRY_HOST}' NETORK_VERSION='${SERVER_VERSION}' bash -s -- ${DATABASE_MODE} ${SERVICES}" \
< "${HERE}/remote/database.sh" 2>&1 | sed "s/^/[${SERVER}] /" || db_status=$?
if [[ $db_status -ne 0 ]]; then