From 1e3e70624fae18ef8a89c2479187b8563b1767f0 Mon Sep 17 00:00:00 2001 From: Avimitin Date: Mon, 29 Jul 2024 23:43:36 +0800 Subject: [PATCH] [nix] differentiate exists and valid Signed-off-by: Avimitin --- nix/pkgs/vcs-fhs-env.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nix/pkgs/vcs-fhs-env.nix b/nix/pkgs/vcs-fhs-env.nix index 8176b3696f..5cf0be588c 100644 --- a/nix/pkgs/vcs-fhs-env.nix +++ b/nix/pkgs/vcs-fhs-env.nix @@ -6,7 +6,8 @@ buildFHSEnv { name = "vcs-fhs-env"; profile = '' - [ ! -d "${vcStaticHome}" ] && echo "env VC_STATIC_HOME not set" && exit 1 + [ ! -e "${vcStaticHome}" ] && echo "env VC_STATIC_HOME not set" && exit 1 + [ ! -d "${vcStaticHome}" ] && echo "VC_STATIC_HOME not accessible" && exit 1 [ -z "${snpslmdLicenseFile}" ] && echo "env SNPS LICENSE not set" && exit 1 export VC_STATIC_HOME=${vcStaticHome}