- 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.
printf "%s... " "${d}"
mkdir -p "${curdir}/${d}"
printf "%s... " "${d}"
mkdir -p "${curdir}/${d}"
+ cd "${curdir}/${d}" || continue
stagit -c ".cache" "${reposdir}/${r}"
# symlinks
stagit -c ".cache" "${reposdir}/${r}"
# symlinks
name="$1"
if test "${name}" = ""; then
name="$1"
if test "${name}" = ""; then
- name=$(basename $(pwd))
+ name=$(basename "$(pwd)")