From b0aa81270d0c0ba87adfa4ec3735b151053d0b1d Mon Sep 17 00:00:00 2001 From: Kate Adkins Date: Mon, 16 Jun 2025 01:07:55 +0200 Subject: [PATCH] xonsh: clear an error message on droid --- xonsh/rc.xsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xonsh/rc.xsh b/xonsh/rc.xsh index 7187d68..1921fa5 100644 --- a/xonsh/rc.xsh +++ b/xonsh/rc.xsh @@ -84,7 +84,7 @@ if not 'XONSH_HAS_NIXOS' in ${...}: $XONSH_HAS_NIXOS = False; if not $XONSH_HAS_NIXOS: - if !(grep -q "DISTRIB_ID=nixos" /etc/lsb-release).returncode == 0: + if (p"/etc/lsb_release".exists()) && !(grep -q "DISTRIB_ID=nixos" /etc/lsb-release).returncode == 0: if XONSHRC_VERBOSE: print("Found a NixOS machine; automatically loading the NixOS extensions.") try_source("includes/nixos")