From d2053aaf6bb1f25d2cf360987bda7885ac12f6e9 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Sun, 25 Oct 2026 13:47:12 +0100 Subject: [PATCH] OmniTools: give the build a git commit to read (#18181) --- ct/omnitools.sh | 3 +++ install/omnitools-install.sh | 6 +++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ct/omnitools.sh b/ct/omnitools.sh index 22cba3cfe..9754c3688 100755 --- a/ct/omnitools.sh +++ b/ct/omnitools.sh @@ -34,12 +34,15 @@ function update_script() { NODE_VERSION="24" setup_nodejs if check_for_gh_release "omnitools" "iib0011/omni-tools"; then + ensure_dependencies git CLEAN_INSTALL=1 fetch_and_deploy_gh_release "omnitools" "iib0011/omni-tools" "tarball" msg_info "Building OmniTools" cd /opt/omnitools export HUSKY=0 $STD npm ci --allow-remote=all + $STD git init -q + $STD git -c user.name=build -c user.email=build@localhost commit -q --allow-empty -m build $STD npm run build msg_ok "Built OmniTools" diff --git a/install/omnitools-install.sh b/install/omnitools-install.sh index 092a3caed..26d87693d 100755 --- a/install/omnitools-install.sh +++ b/install/omnitools-install.sh @@ -14,7 +14,9 @@ network_check update_os msg_info "Installing Dependencies" -$STD apt install -y nginx +$STD apt install -y \ + git \ + nginx msg_ok "Installed Dependencies" NODE_VERSION="24" setup_nodejs @@ -24,6 +26,8 @@ msg_info "Building OmniTools" cd /opt/omnitools export HUSKY=0 $STD npm ci --allow-remote=all +$STD git init -q +$STD git -c user.name=build -c user.email=build@localhost commit -q --allow-empty -m build $STD npm run build msg_ok "Built OmniTools"