Skip to content

Commit

Permalink
Fix deleting :nodejs key correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh-sonpatki committed Feb 26, 2016
1 parent e95d51f commit 0876c9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.rb
Expand Up @@ -11,11 +11,11 @@
}

# accept node as an alias for nodejs; not absolutely required on Mac OS/X
prereqs.delete 'nodejs' unless `which node`.empty?
prereqs.delete 'nodejs' if RUBY_PLATFORM.include? 'darwin'
prereqs.delete :nodejs unless `which node`.empty?
prereqs.delete :nodejs if RUBY_PLATFORM.include? 'darwin'

# check prereqs
prereqs.keys.each do |cmd|
prereqs.keys.each do |cmd|
next unless `which #{cmd}`.empty?
if Process.uid == 0
system "apt-get install -y #{prereqs[cmd]}"
Expand Down

0 comments on commit 0876c9b

Please sign in to comment.