-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfetch_submodules.sh
More file actions
26 lines (21 loc) · 898 Bytes
/
fetch_submodules.sh
File metadata and controls
26 lines (21 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
set -e
BASE_DIR="$(cd "$(dirname "$0")" && pwd)"
echo "Fetching submodules..."
# 10x_saturate
if [ ! -f "$BASE_DIR/submodules/10x_saturate/README.md" ]; then
echo "Downloading 10x_saturate..."
curl -L -o /tmp/10x_saturate.zip https://github.com/zolotarovgl/10x_saturate/archive/refs/heads/main.zip
unzip -q /tmp/10x_saturate.zip -d /tmp
cp -r /tmp/10x_saturate-main/* "$BASE_DIR/submodules/10x_saturate/"
rm -rf /tmp/10x_saturate-main /tmp/10x_saturate.zip
fi
# GeneExt
if [ ! -f "$BASE_DIR/submodules/GeneExt/environment.yaml" ]; then
echo "Downloading GeneExt..."
curl -L -o /tmp/GeneExt.zip https://github.com/zolotarovgl/GeneExt/archive/refs/heads/main.zip
unzip -q /tmp/GeneExt.zip -d /tmp
cp -r /tmp/GeneExt-main/* "$BASE_DIR/submodules/GeneExt/"
rm -rf /tmp/GeneExt-main /tmp/GeneExt.zip
fi
echo "Submodules downloaded successfully!"