From ea625db0150e1dd0044aa4388d139400a639647e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=B7=F0=90=91=91=F0=90=91=B4=F0=90=91=95=F0=90=91=91?= =?UTF-8?q?=F0=90=91=A9=F0=90=91=A4?= Date: Sat, 28 Mar 2026 15:00:15 +0700 Subject: [PATCH 1/3] dl_invites: move to POSIX shell MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Not all systems have Bash at this location. /bin/sh is required for POSIX-compliance however. Since (luckily) no Bashisms are used, there is no reason to require Bash’s extra weight. --- tools/dl_invites_page_deps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dl_invites_page_deps.sh b/tools/dl_invites_page_deps.sh index 10048ae6877..ac6ac162233 100755 --- a/tools/dl_invites_page_deps.sh +++ b/tools/dl_invites_page_deps.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh set -e From 67e73f4bffd9a61b90bf986edfdb289d85bf20b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=B7=F0=90=91=91=F0=90=91=B4=F0=90=91=95=F0=90=91=91?= =?UTF-8?q?=F0=90=91=A9=F0=90=91=A4?= Date: Sat, 28 Mar 2026 15:05:04 +0700 Subject: [PATCH 2/3] dl_invites: wrap shell vars in double quotes to prevent globbing/splitting issues shellcheck recommended --- tools/dl_invites_page_deps.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/dl_invites_page_deps.sh b/tools/dl_invites_page_deps.sh index ac6ac162233..f6326cdfc0e 100755 --- a/tools/dl_invites_page_deps.sh +++ b/tools/dl_invites_page_deps.sh @@ -17,16 +17,16 @@ install_dir="$1" mkdir -p "$install_dir/jquery" jquery="$(mktemp /tmp/jquery.XXXXXXXXX)" -curl -s -o $jquery https://code.jquery.com/jquery-4.0.0.min.js -check $jquery_checksum $jquery -mv $jquery "$install_dir/jquery/jquery.min.js" +curl -s -o "$jquery" https://code.jquery.com/jquery-4.0.0.min.js +check "$jquery_checksum" "$jquery" +mv "$jquery" "$install_dir/jquery/jquery.min.js" bootstrap="$(mktemp /tmp/bootstrap.XXXXXXXXX)" -curl -L -s -o $bootstrap https://github.com/twbs/bootstrap/releases/download/v5.3.8/bootstrap-5.3.8-dist.zip -check $bootstrap_checksum $bootstrap +curl -L -s -o "$bootstrap" https://github.com/twbs/bootstrap/releases/download/v5.3.8/bootstrap-5.3.8-dist.zip +check "$bootstrap_checksum" "$bootstrap" rm -rf "$install_dir/bootstrap" -unzip -q -d "$install_dir" $bootstrap +unzip -q -d "$install_dir" "$bootstrap" mv "$install_dir/bootstrap-5.3.8-dist" "$install_dir/bootstrap" -rm $bootstrap +rm "$bootstrap" echo "landing page dependencies for mod_invites installed to $install_dir" From 5129fc6a562369a4aa652f31340f2abe28a1b4a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C2=B7=F0=90=91=91=F0=90=91=B4=F0=90=91=95=F0=90=91=91?= =?UTF-8?q?=F0=90=91=A9=F0=90=91=A4?= Date: Sat, 28 Mar 2026 15:06:00 +0700 Subject: [PATCH 3/3] dl_invites: remove extraneous semicolons --- tools/dl_invites_page_deps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dl_invites_page_deps.sh b/tools/dl_invites_page_deps.sh index f6326cdfc0e..e31af6631fe 100755 --- a/tools/dl_invites_page_deps.sh +++ b/tools/dl_invites_page_deps.sh @@ -2,8 +2,8 @@ set -e -jquery_checksum='39a546ea9ad97f8bfaf5d3e0e8f8556adb415e470e59007ada9759dce472adaa'; -bootstrap_checksum='3258c873cbcb1e2d81f4374afea2ea6437d9eee9077041073fd81dd579c5ba6b'; +jquery_checksum='39a546ea9ad97f8bfaf5d3e0e8f8556adb415e470e59007ada9759dce472adaa' +bootstrap_checksum='3258c873cbcb1e2d81f4374afea2ea6437d9eee9077041073fd81dd579c5ba6b' check() { echo "$1 $2" | sha256sum -c - || (echo "checksum failed: $2 (does not match $1)"; exit 1)