diff --git a/node/volta.fish b/node/volta.fish index 9d37b96..c840232 100755 --- a/node/volta.fish +++ b/node/volta.fish @@ -8,4 +8,5 @@ print_title "Volta & Node.js" execute "curl https://get.volta.sh | bash -s -- --skip-setup" Volta -execute ". $DOT/node/path.config.fish && volta install node" "Node.js LTS" +execute "if ! cmd_exists 'volta'; source $DOT/node/path.config.fish; end && volta install node" \ + "Node.js LTS"