summaryrefslogtreecommitdiffstats
path: root/bin/clone_formulas.sh
blob: e6f9e567377a36f87ae6e2bda7759198b80e6b4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
set -Ceu

FORMULASDIR='/srv/formulas'

if [ ! -d "$FORMULASDIR" ]
then
        git clone --recurse-submodules --single-branch -b production https://git.com.de/LibertaCasa/salt-formulas.git "$FORMULASDIR"
        exit "$?"
fi

git -C "$FORMULASDIR" pull --recurse-submodules