From a988dd11831303d8921c9f8a04c577af88ef453b Mon Sep 17 00:00:00 2001 From: cswimr Date: Thu, 19 Dec 2024 11:09:46 -0500 Subject: [PATCH] don't exit `upd --purge-vscode-extensions` if `code` is not running --- config/xonsh/aliases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/xonsh/aliases.py b/config/xonsh/aliases.py index 5cc1207..e939019 100644 --- a/config/xonsh/aliases.py +++ b/config/xonsh/aliases.py @@ -64,7 +64,7 @@ def _upd(args: list): if "--purge-vscode-extensions" in args: args.remove("--purge-vscode-extensions") print(f"{c.BLUE}Killing {c.YELLOW}Visual Studio Code{c.BLUE} processes{c.END}") - run(["killall", "code"]) + run(["killall", "code"], exit_on_error=False) print(f"{c.BLUE}Purging {c.YELLOW}Visual Studio Code{c.BLUE} extensions{c.END}") run(["rm", "-rf", ".vscode/extensions"], cwd="/home/cswimr") print(f"{c.BLUE}Rebuilding {c.YELLOW}NixOS{c.BLUE} configuration{c.END}")