diff options
author | Hiltjo Posthuma <[email protected]> | 2019-03-01 11:49:29 +0100 |
---|---|---|
committer | Hiltjo Posthuma <[email protected]> | 2019-03-01 11:49:29 +0100 |
commit | 587b01428d6ec2be1ab6b468198663118d483990 (patch) | |
tree | a96e04a7c8cd494ed4edf4aeedd484372f32aa6f /example_post-receive.sh | |
parent | 477d50169a42431d7fb0f939eb851ef6a2d80c3a (diff) | |
download | stagit-587b01428d6ec2be1ab6b468198663118d483990.tar.gz stagit-587b01428d6ec2be1ab6b468198663118d483990.zip |
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 (limited to 'example_post-receive.sh')
-rwxr-xr-x | example_post-receive.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example_post-receive.sh b/example_post-receive.sh index 0655569..c9bcb5e 100755 --- 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 |