Skip to content
This repository has been archived by the owner on Nov 6, 2018. It is now read-only.

Commit

Permalink
Merge pull request #2 from livinginthepast/master
Browse files Browse the repository at this point in the history
User can include spaces in keys and values for defaults
  • Loading branch information
Joshua Timberman committed Dec 9, 2011
2 parents 9ba3096 + 32f9a33 commit 39ff26d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/userdefaults.rb
Expand Up @@ -39,9 +39,9 @@ def load_current_resource
unless @userdefaults.is_set
cmd = "#{'sudo' if new_resource.sudo} defaults write #{new_resource.domain} "
cmd << "-g " if new_resource.global
cmd << "#{new_resource.key} " if new_resource.key
cmd << "'#{new_resource.key}' " if new_resource.key
cmd << "-#{new_resource.type} " if new_resource.type
cmd << new_resource.value
cmd << "'#{new_resource.value}'"
execute cmd
end
end

0 comments on commit 39ff26d

Please sign in to comment.