From e6d9e96026e762032afbd0ec2889c2342c29a88c Mon Sep 17 00:00:00 2001 From: Ruben Date: Mon, 13 Oct 2025 11:00:21 -0500 Subject: [PATCH] simple npm check --- helperbot | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/helperbot b/helperbot index 89f71ce..e6fefa8 100755 --- a/helperbot +++ b/helperbot @@ -192,7 +192,7 @@ function update_docker_container { fi } -# deno install - installs/updates deno if required on the system, only used for neptunium currently +# deno install - just runs the demo script which will install/update deno, only used for neptunium currently for pds-dash function deno_install { if [ "$synth_current_system" = "neptunium" ]; then # only used on neptunium echo "${blue}Running Deno installer.${normal}" @@ -239,7 +239,11 @@ function system_upgrade { update_docker_container "/srv/docker/forgejo" "runner" "compose.yaml" # sites/others echo "${blue}Pulling main site...${normal}" - git pull /var/www/site # main site + if [ ! -x "$(command -v npm)" ]; then # npm is required - don't continue if it's not installed + echo "${red}Error(site)${normal}: npm is not installed. Please install it and try again. Beep!" + exit 1 + fi + cd /var/www/site && /var/www/site/gen.sh # pds-dash echo "${blue}Updating pds-dash...${normal}" git pull /var/www/pds-dash