fix issues in example scripts

- in case cd fails don't continue (don't write in previous directory).
- post-receive: quote $(pwd) in case it has spaces.

found by shellcheck tool.
This commit is contained in:
Hiltjo Posthuma
2019-03-01 11:49:29 +01:00
parent 477d50169a
commit 587b01428d
2 changed files with 2 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ for dir in "${reposdir}/"*/; do
printf "%s... " "${d}"
mkdir -p "${curdir}/${d}"
cd "${curdir}/${d}"
cd "${curdir}/${d}" || continue
stagit -c ".cache" "${reposdir}/${r}"
# symlinks