From 587b01428d6ec2be1ab6b468198663118d483990 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 1 Mar 2019 11:49:29 +0100 Subject: 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. --- example_create.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'example_create.sh') diff --git a/example_create.sh b/example_create.sh index aff7d54..cf16e1d 100755 --- 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 -- cgit v1.2.3