Add clone_formulas script
Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
This commit is contained in:
parent
50c638a000
commit
7f9bf11048
12
bin/clone_formulas.sh
Executable file
12
bin/clone_formulas.sh
Executable file
@ -0,0 +1,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
|
Loading…
Reference in New Issue
Block a user