CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/software-inventory/setup.sh
Views: 687
1
#!/usr/bin/env bash
2
set -e
3
4
dist="lib/software-inventory"
5
mkdir -p $dist
6
7
# don't update inventory files if they're symlinks – used for local testing
8
for name in "18.04" "20.04" "22.04"; do
9
fn="software-inventory-$name.json"
10
local="software-inventory/$name.json"
11
targ="$dist/$name.json"
12
13
if [[ ! -L "$local" ]]; then
14
curl --silent --show-error --fail "https://storage.googleapis.com/cocalc-compute-environment/$fn" -o "$local"
15
fi
16
17
cp -v "$local" "$targ"
18
done
19
20