Try to fix macos self-updater

This commit is contained in:
crschnick 2023-11-26 08:53:36 +00:00
parent ecd8ab24ce
commit f5eebdae73

View file

@ -277,7 +277,6 @@ public class AppInstaller {
public void installLocal(String file) throws Exception {
var command = new LocalStore()
.control()
.subShell(ShellDialects.BASH)
.command(String.format(
"""
function exec {
@ -287,7 +286,7 @@ public class AppInstaller {
}
cd ~
exec || read -rsp "Update failed ..."$'\\n' -n 1 key
exec || echo "Update failed ..." && read -rs -k 1 key
""",
file, file));
TerminalHelper.open("XPipe Updater", command);