fix issues in example scripts - stagit - static git page generator
 (HTM) git clone git://git.codemadness.org/stagit
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 587b01428d6ec2be1ab6b468198663118d483990
 (DIR) parent 477d50169a42431d7fb0f939eb851ef6a2d80c3a
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Fri,  1 Mar 2019 11:49:29 +0100
       
       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(-)
       ---
 (DIR) diff --git a/example_create.sh b/example_create.sh
       @@ -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
 (DIR) diff --git a/example_post-receive.sh b/example_post-receive.sh
       @@ -14,7 +14,7 @@ export LC_CTYPE="en_US.UTF-8"
        
        name="$1"
        if test "${name}" = ""; then
       -        name=$(basename $(pwd))
       +        name=$(basename "$(pwd)")
        fi
        
        # config