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

This commit is contained in:
Emil Miler 2020-05-01 00:09:24 +02:00
parent ca2329ea27
commit f9fe29f474
2 changed files with 3 additions and 3 deletions

View File

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

BIN
prace.pdf

Binary file not shown.