diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-10-11 22:13:05 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-10-11 22:13:05 +0200 |
commit | 0e38d3acd98b6cf472f60cea735af8a100a3f5b0 (patch) | |
tree | 40f818e69523aa20fccc1b7333c42a0638f3dcb2 /tests/blogc-git-receiver/check_shell.sh | |
parent | 69d5ab4863958fe065ae91440f2d175b55fcf266 (diff) | |
download | blogc-0e38d3acd98b6cf472f60cea735af8a100a3f5b0.tar.gz blogc-0e38d3acd98b6cf472f60cea735af8a100a3f5b0.tar.bz2 blogc-0e38d3acd98b6cf472f60cea735af8a100a3f5b0.zip |
tests: git-receiver: avoid removing directories for safety
Diffstat (limited to 'tests/blogc-git-receiver/check_shell.sh')
-rwxr-xr-x | tests/blogc-git-receiver/check_shell.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/blogc-git-receiver/check_shell.sh b/tests/blogc-git-receiver/check_shell.sh index 0367f96..64f105e 100755 --- a/tests/blogc-git-receiver/check_shell.sh +++ b/tests/blogc-git-receiver/check_shell.sh @@ -9,7 +9,7 @@ TEMP="$(mktemp -d)" trap_func() { [[ -e "${TEMP}/output.txt" ]] && cat "${TEMP}/output.txt" - rm -rf "${TEMP}" + [[ -n "${TEMP}" ]] && rm -rf "${TEMP}" } trap trap_func EXIT |