From 0ff2f957fe64e2fe5c898525a290314abdc2d5a2 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 9 May 2025 10:40:33 +0300 Subject: Check for guix. Signed-off-by: Munyoki Kilyungi --- genenetwork-local-container.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/genenetwork-local-container.sh b/genenetwork-local-container.sh index 0108390..1db01dd 100755 --- a/genenetwork-local-container.sh +++ b/genenetwork-local-container.sh @@ -73,13 +73,20 @@ log() { } # Check dependencies -for cmd in git guix sudo diff cp grep; do +for cmd in git sudo diff cp grep; do if ! command -v "$cmd" &>/dev/null; then log "ERROR" "Required command '$cmd' not found" exit 1 fi done +if ! command -v guix &>/dev/null; then + echo "Please install Guix to proceed. Follow the instructions at:" + echo "https://issues.genenetwork.org/topics/octopus/set-up-guix-for-new-users" + echo "After installing Guix, try running this script again." + exit 1 +fi + # Check for gn-bioinformatics channel 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" && exit 1) -- cgit 1.4.1