From c54379172fedcbf7c7e8faf46fb300619fa920d7 Mon Sep 17 00:00:00 2001 From: anthorob Date: Sat, 12 Jul 2025 11:45:58 -0400 Subject: [PATCH] fix node metadata script --- templates/php/main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/php/main.tf b/templates/php/main.tf index 6dba4d5..abef6c0 100644 --- a/templates/php/main.tf +++ b/templates/php/main.tf @@ -69,7 +69,7 @@ module "php_workspace" { { display_name = "Node.js Version" key = "node_version" - script = "node -v 2>/dev/null || echo 'Node not installed'" + script = "[ -s $NVM_DIR/nvm.sh ] && . $NVM_DIR/nvm.sh && node -v 2>/dev/null || echo 'Node not installed'" interval = 60 timeout = 1 }