feat: add sudo

This commit is contained in:
Mark Bailey 2024-09-22 20:09:36 -04:00
parent c7c02a6718
commit 639c21fdd0

View File

@ -47,7 +47,7 @@ func downgrade() error {
return errors.New("please choose either --mask or --unmask, not both")
}
cmd := exec.Command("flatpak", "update", "--commit="+Version, PkgName)
cmd := exec.Command("sudo", "-S", "flatpak", "update", "--commit="+Version, PkgName)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout