fix node metadata script
This commit is contained in:
1 parent
fc684796b2
commit
c54379172f
1 file changed
+1
-1
@@ -69,7 +69,7 @@ module "php_workspace" {
|
|||||||
{
|
{
|
||||||
display_name = "Node.js Version"
|
display_name = "Node.js Version"
|
||||||
key = "node_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
|
interval = 60
|
||||||
timeout = 1
|
timeout = 1
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user