Skip to content

Commit 05401c1

Browse files
committed
refresh env var in linux
1 parent 1413e79 commit 05401c1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shared-scripts.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,9 @@ function _setupNodeVersionLinux {
535535
# Install and use the specified Node.js version
536536
nvm install "$version"
537537
nvm use "$version"
538+
539+
# Refresh environment variables
540+
source ~/.bashrc # Or source the appropriate shell profile file like ~/.bash_profile or ~/.zshrc
538541

539542
# Verify the Node.js version in use
540543
echo "Node.js version in use:"

0 commit comments

Comments
 (0)