Skip to content

Commit

Permalink
[nix] differentiate exists and valid
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>
  • Loading branch information
Avimitin committed Jul 29, 2024
1 parent d86522c commit 1e3e706
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nix/pkgs/vcs-fhs-env.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 1e3e706

Please sign in to comment.