don't exit upd --purge-vscode-extensions if code is not running

This commit is contained in:
Seaswimmer 2024-12-19 11:09:46 -05:00
parent 005721487b
commit a988dd1183
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -64,7 +64,7 @@ def _upd(args: list):
if "--purge-vscode-extensions" in args: if "--purge-vscode-extensions" in args:
args.remove("--purge-vscode-extensions") args.remove("--purge-vscode-extensions")
print(f"{c.BLUE}Killing {c.YELLOW}Visual Studio Code{c.BLUE} processes{c.END}") 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}") print(f"{c.BLUE}Purging {c.YELLOW}Visual Studio Code{c.BLUE} extensions{c.END}")
run(["rm", "-rf", ".vscode/extensions"], cwd="/home/cswimr") run(["rm", "-rf", ".vscode/extensions"], cwd="/home/cswimr")
print(f"{c.BLUE}Rebuilding {c.YELLOW}NixOS{c.BLUE} configuration{c.END}") print(f"{c.BLUE}Rebuilding {c.YELLOW}NixOS{c.BLUE} configuration{c.END}")