Skip to content

Commit

Permalink
Vagrant would print error message "The system cannot find the path sp…
Browse files Browse the repository at this point in the history
…ecified." Need to detect the path.
  • Loading branch information
greend139 authored and Brian (bex) Exelbierd committed Aug 22, 2016
1 parent 0d01688 commit e1a8062
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/landrush/cap/host/debian/host.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module Cap
module Debian
class DebianHost < Vagrant.plugin('2', 'host')
def detect?(_env)
return false unless Pathname('/etc/issue').exist?
system("cat /etc/issue | grep 'Debian' > /dev/null 2>&1")
end
end
Expand Down

0 comments on commit e1a8062

Please sign in to comment.