Use the nodenv layout instead of the old nvm one
This commit is contained in:
parent
4e1adf3fa4
commit
4ccf33b85e
1 changed files with 6 additions and 4 deletions
10
script/sync
10
script/sync
|
@ -88,11 +88,13 @@ end
|
|||
|
||||
# Sync NVM nodes.
|
||||
|
||||
Dir.chdir "#{config.homedir}/nvm" do
|
||||
Dir["v*"].each do |dir|
|
||||
Dir.chdir "#{config.homedir}/nodenv/versions" do
|
||||
Dir["*"].each do |dir|
|
||||
next if File.symlink? dir
|
||||
|
||||
version = File.basename dir
|
||||
file = "nvm/#{os}/#{version}.tar.bz2"
|
||||
temp = Tempfile.new "nvm"
|
||||
file = "nodenv/#{os}/#{version}.tar.bz2"
|
||||
temp = Tempfile.new "nodenv"
|
||||
obj = bucket.objects[file]
|
||||
|
||||
next if obj.exists?
|
||||
|
|
Loading…
Reference in a new issue