aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMunyoki Kilyungi2025-05-09 10:40:33 +0300
committerMunyoki Kilyungi2025-05-09 10:40:33 +0300
commit0ff2f957fe64e2fe5c898525a290314abdc2d5a2 (patch)
tree570d6bbe79c25b26f8db435462f8536446960b36
parent3dac8432af9966677bd8a4abf6002b281dafb91b (diff)
downloadgn-machines-0ff2f957fe64e2fe5c898525a290314abdc2d5a2.tar.gz
Check for guix.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
-rwxr-xr-xgenenetwork-local-container.sh9
1 files changed, 8 insertions, 1 deletions
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)