- commit
- 587b01428d6ec2be1ab6b468198663118d483990
- parent
- 477d50169a42431d7fb0f939eb851ef6a2d80c3a
- Author
- Hiltjo Posthuma <hiltjo@codemadness.org>
- Date
- 2019-03-01 10:49
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.
Diffstat
M | example_create.sh | 2 | +- |
M | example_post-receive.sh | 2 | +- |
2 files changed, 2 insertions, 2 deletions
diff --git a/example_create.sh b/example_create.sh
@@ -30,7 +30,7 @@ for dir in "${reposdir}/"*/; do 30 30 printf "%s... " "${d}" 31 31 32 32 mkdir -p "${curdir}/${d}"33 -1 cd "${curdir}/${d}"-1 33 cd "${curdir}/${d}" || continue 34 34 stagit -c ".cache" "${reposdir}/${r}" 35 35 36 36 # symlinks
diff --git a/example_post-receive.sh b/example_post-receive.sh
@@ -14,7 +14,7 @@ export LC_CTYPE="en_US.UTF-8" 14 14 15 15 name="$1" 16 16 if test "${name}" = ""; then17 -1 name=$(basename $(pwd))-1 17 name=$(basename "$(pwd)") 18 18 fi 19 19 20 20 # config