From 5c91895df1a8f1ad0b95a9b75ec2a84e576772a9 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 28 May 2024 01:37:40 +0200 Subject: Check if nvm is installed --- .config/powershell/bootstrap.ps1 | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.config/powershell') diff --git a/.config/powershell/bootstrap.ps1 b/.config/powershell/bootstrap.ps1 index df0af1c..601fcc6 100644 --- a/.config/powershell/bootstrap.ps1 +++ b/.config/powershell/bootstrap.ps1 @@ -52,6 +52,11 @@ Update-EnvironmentVariables Write-Host "Profile registry paths, environment variables, and user profile directory have been updated. Please reboot the system." +# Function to check if NVM is installed +function Test-NVMInstalled { + $nvmPath = "$env:USERPROFILE\AppData\Roaming\nvm\nvm.exe" + return Test-Path -Path $nvmPath +} # Install NVM if not installed Write-Host "Configuring NVM" -- cgit v1.2.3