From 034cb3858ad0eb8d3f576ae3904391c48ba37ae8 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 6 May 2025 21:37:59 +0300 Subject: Verify that the profile has the guix-bioinformatic channel. Signed-off-by: Munyoki Kilyungi --- genenetwork-local-container.sh | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/genenetwork-local-container.sh b/genenetwork-local-container.sh index 0875625..8e599e4 100755 --- a/genenetwork-local-container.sh +++ b/genenetwork-local-container.sh @@ -73,14 +73,9 @@ for cmd in git guix sudo diff cp grep; do fi done -guix_output=$(guix describe) # Check for gn-bioinformatics channel -echo "$guix_output" | grep -q "gn-bioinformatics" -if [ $? = 1 ]; then - log ERROR "$guix_output" - log ERROR "Please make sure your current profile has gn-bioinformatics" - exit 1 -fi +guix describe | grep gn-bioinformatics &> /dev/null && log "INFO" "guix guix-informatics $(guix describe | grep gn-bioinformatics | cut -d ' ' -f 4)" || log "ERROR" "Please make sure your current profile has gn-bioinformatics" + # Validate HOME is set if [ -z "${HOME:-}" ]; then log "ERROR" "HOME environment variable is not set" -- cgit 1.4.1