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:
parent
477d50169a
commit
587b01428d
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue