diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-05-28 01:37:40 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-05-28 01:37:40 +0200 |
| commit | 5c91895df1a8f1ad0b95a9b75ec2a84e576772a9 (patch) | |
| tree | 4902637245c5681c3e5f1d626aee1837c21d7014 /.config | |
| parent | c464f80112a2f1a9ca973904e5f05df916e7d72e (diff) | |
| download | dotfiles-5c91895df1a8f1ad0b95a9b75ec2a84e576772a9.tar.gz dotfiles-5c91895df1a8f1ad0b95a9b75ec2a84e576772a9.zip | |
Check if nvm is installed
Diffstat (limited to '.config')
| -rw-r--r-- | .config/powershell/bootstrap.ps1 | 5 |
1 files changed, 5 insertions, 0 deletions
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" |
