Ukončení skriptu při každém non-zero exit kódu

master
Emil Miler 4 years ago
parent ca2329ea27
commit f9fe29f474

@ -353,7 +353,7 @@ Následující skript po vyvolání Gitem provede veškeré potřebné operace k
stepnumber=1,
firstnumber=0
]
#!/bin/sh
#!/bin/sh -e
GREPO="https://git.microlab.space/pedf/ucitelonline"
GDIR="ucitelonline"
WEBROOT="/srv/www/ucitelonline"
@ -363,8 +363,8 @@ cd $(dirname $0)
[ ! -d "$GDIR" ] && git clone --recursive "$GREPO" "$GDIR"
cd "$GDIR"
git pull &&
zola build &&
git pull
zola build
rsync --recursive --delete --checksum \
--group --groupmap=*:www-data --chmod=D750,F640 \
public/ "$WEBROOT"

Binary file not shown.