mirror of
https://github.com/wavetermdev/homebrew-cask.git
synced 2026-08-05 13:43:24 -07:00
sudo: /usr/sbin/installer expects the root user
Refs Homebrew/brew#14629
This commit is contained in:
@@ -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
|
||||
|
||||
+2
-1
@@ -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}"],
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.*"
|
||||
|
||||
Reference in New Issue
Block a user