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