lib/fir/patches/parser_patch.rb in fir-cli-1.0.1 vs lib/fir/patches/parser_patch.rb in fir-cli-1.0.2
- old
+ new
@@ -118,11 +118,11 @@
def mobileprovision
return unless has_mobileprovision?
return @mobileprovision if @mobileprovision
- @mobileprovision = CFPropertyList.native_types(
- CFPropertyList::List.new(data: `security cms -D -i #{mobileprovision_path}`).value)
+ cmd = "security cms -D -i \"#{mobileprovision_path}\""
+ @mobileprovision = CFPropertyList.native_types(CFPropertyList::List.new(data: `#{cmd}`).value)
end
def has_mobileprovision?
File.file? mobileprovision_path
end