diff --git a/Casks/a/asix-ax88179.rb b/Casks/a/asix-ax88179.rb index 40d52ba37f..3fef2d6bb8 100644 --- a/Casks/a/asix-ax88179.rb +++ b/Casks/a/asix-ax88179.rb @@ -44,7 +44,8 @@ cask "asix-ax88179" do "-pkg", staged_path/"AX88179_178A_Uninstall.pkg", "-target", "/" ], - sudo: true + sudo: true, + sudo_as_root: true end end on_big_sur do @@ -73,7 +74,8 @@ cask "asix-ax88179" do "-pkg", staged_path/"AX88179_178A_Uninstall.pkg", "-target", "/" ], - sudo: true + sudo: true, + sudo_as_root: true end end on_monterey :or_newer do diff --git a/Casks/w/winclone.rb b/Casks/w/winclone.rb index 98c52ef882..ac066dca65 100644 --- a/Casks/w/winclone.rb +++ b/Casks/w/winclone.rb @@ -23,7 +23,8 @@ cask "winclone" do "-pkg", "#{staged_path}/Uninstaller/Uninstall Winclone.pkg", "-target", "/" ], - sudo: true + sudo: true, + sudo_as_root: true end uninstall signal: ["TERM", "com.twocanoes.Winclone#{version.major}"], diff --git a/Casks/w/wireshark-chmodbpf.rb b/Casks/w/wireshark-chmodbpf.rb index 36809aaee1..1df2d27bd4 100644 --- a/Casks/w/wireshark-chmodbpf.rb +++ b/Casks/w/wireshark-chmodbpf.rb @@ -25,7 +25,8 @@ cask "wireshark-chmodbpf" do "-pkg", "#{staged_path}/Uninstall ChmodBPF.pkg", "-target", "/" ], - sudo: true + sudo: true, + sudo_as_root: true end uninstall pkgutil: "org.wireshark.ChmodBPF.pkg" diff --git a/Casks/w/wireshark.rb b/Casks/w/wireshark.rb index f120d08645..890561931d 100644 --- a/Casks/w/wireshark.rb +++ b/Casks/w/wireshark.rb @@ -78,13 +78,15 @@ cask "wireshark" do "-pkg", "#{staged_path}/Uninstall ChmodBPF.pkg", "-target", "/" ], - sudo: true + sudo: true, + sudo_as_root: true system_command "/usr/sbin/installer", args: [ "-pkg", "#{staged_path}/Remove Wireshark from the system path.pkg", "-target", "/" ], - sudo: true + sudo: true, + sudo_as_root: true end uninstall pkgutil: "org.wireshark.*"