diff --git a/Casks/android-studio-bundle.rb b/Casks/android-studio-bundle.rb index 6cdbc532d6..963802c119 100644 --- a/Casks/android-studio-bundle.rb +++ b/Casks/android-studio-bundle.rb @@ -9,6 +9,6 @@ cask :v1 => 'android-studio-bundle' do app 'Android Studio.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/Android Studio.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end end diff --git a/Casks/android-studio.rb b/Casks/android-studio.rb index ddb4c115c0..d4af435e30 100644 --- a/Casks/android-studio.rb +++ b/Casks/android-studio.rb @@ -9,6 +9,6 @@ cask :v1 => 'android-studio' do app 'Android Studio.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/Android Studio.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end end diff --git a/Casks/appcode.rb b/Casks/appcode.rb index f4c45b8dfc..dddce27754 100644 --- a/Casks/appcode.rb +++ b/Casks/appcode.rb @@ -9,6 +9,6 @@ cask :v1 => 'appcode' do app 'AppCode.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/AppCode.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end end diff --git a/Casks/intellij-idea-ce.rb b/Casks/intellij-idea-ce.rb index dc3b83e263..bbce59a1eb 100644 --- a/Casks/intellij-idea-ce.rb +++ b/Casks/intellij-idea-ce.rb @@ -9,7 +9,7 @@ cask :v1 => 'intellij-idea-ce' do app 'IntelliJ IDEA 14 CE.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/IntelliJ IDEA 14 CE.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end zap :delete => [ diff --git a/Casks/intellij-idea.rb b/Casks/intellij-idea.rb index ceaedf530b..473f05b787 100644 --- a/Casks/intellij-idea.rb +++ b/Casks/intellij-idea.rb @@ -9,7 +9,7 @@ cask :v1 => 'intellij-idea' do app 'IntelliJ IDEA 14.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/IntelliJ IDEA 14.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end zap :delete => [ diff --git a/Casks/phpstorm.rb b/Casks/phpstorm.rb index b65b88b96d..e20b3e7d3a 100644 --- a/Casks/phpstorm.rb +++ b/Casks/phpstorm.rb @@ -9,7 +9,7 @@ cask :v1 => 'phpstorm' do app 'PhpStorm.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/PhpStorm.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end zap :delete => [ diff --git a/Casks/pycharm-ce.rb b/Casks/pycharm-ce.rb index 482c652b2b..5c9c573c58 100644 --- a/Casks/pycharm-ce.rb +++ b/Casks/pycharm-ce.rb @@ -9,6 +9,6 @@ cask :v1 => 'pycharm-ce' do app 'PyCharm CE.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/PyCharm CE.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end end diff --git a/Casks/pycharm.rb b/Casks/pycharm.rb index 62d205c529..10a12e2f91 100644 --- a/Casks/pycharm.rb +++ b/Casks/pycharm.rb @@ -9,6 +9,6 @@ cask :v1 => 'pycharm' do app 'PyCharm.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/PyCharm.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end end diff --git a/Casks/rubymine.rb b/Casks/rubymine.rb index 9add6b84a3..e903cbf38e 100644 --- a/Casks/rubymine.rb +++ b/Casks/rubymine.rb @@ -9,7 +9,7 @@ cask :v1 => 'rubymine' do app 'RubyMine.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/RubyMine.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end zap :delete => [ diff --git a/Casks/webstorm.rb b/Casks/webstorm.rb index 308f15573e..c2048f43ff 100644 --- a/Casks/webstorm.rb +++ b/Casks/webstorm.rb @@ -9,6 +9,6 @@ cask :v1 => 'webstorm' do app 'WebStorm.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/WebStorm.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end end diff --git a/Casks/zeroxdbe-eap.rb b/Casks/zeroxdbe-eap.rb index 0f98efb811..7865bfd18a 100644 --- a/Casks/zeroxdbe-eap.rb +++ b/Casks/zeroxdbe-eap.rb @@ -9,6 +9,6 @@ cask :v1 => 'zeroxdbe-eap' do app '0xDBE EAP.app' postflight do - system '/usr/libexec/PlistBuddy', '-c', 'Set :JVMOptions:JVMVersion 1.6+', "#{staged_path}/0xDBE\ EAP.app/Contents/Info.plist" + plist_set(':JVMOptions:JVMVersion', '1.6+') end end