Skip to content

Commit

Permalink
Merge pull request #120 from cosmo0920/add-escape-ppa-check-methods
Browse files Browse the repository at this point in the history
use #escape inside ppa check methods chell command string
  • Loading branch information
mizzy committed May 28, 2014
2 parents 43b02bd + 02e107e commit 04e8840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/specinfra/command/ubuntu.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ def check_running(service)
end

def check_ppa(package)
"find /etc/apt/ -name \*.list | xargs grep -o \"deb http://ppa.launchpad.net/#{package}\""
"find /etc/apt/ -name \*.list | xargs grep -o \"deb http://ppa.launchpad.net/#{escape(package)}\""
end

def check_ppa_enabled(package)
"find /etc/apt/ -name \*.list | xargs grep -o \"^deb http://ppa.launchpad.net/#{package}\""
"find /etc/apt/ -name \*.list | xargs grep -o \"^deb http://ppa.launchpad.net/#{escape(package)}\""
end
end
end
Expand Down

0 comments on commit 04e8840

Please sign in to comment.