mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Merge remote-tracking branch 'tor-github/pr/665'
This commit is contained in:
commit
6927e9a60c
2
changes/bug29063
Normal file
2
changes/bug29063
Normal file
@ -0,0 +1,2 @@
|
||||
o Code simplification and refactoring (shell scripts):
|
||||
- Fix issues shellcheck found in test_rebind.sh. Resolves issue 29063.
|
@ -15,10 +15,15 @@ fi
|
||||
exitcode=0
|
||||
|
||||
tmpdir=
|
||||
clean () { test -n "$tmpdir" && test -d "$tmpdir" && rm -rf "$tmpdir" || :; }
|
||||
clean () {
|
||||
if [ -n "$tmpdir" ] && [ -d "$tmpdir" ]; then
|
||||
rm -rf "$tmpdir"
|
||||
fi
|
||||
}
|
||||
|
||||
trap clean EXIT HUP INT TERM
|
||||
|
||||
tmpdir="`mktemp -d -t tor_rebind_test.XXXXXX`"
|
||||
tmpdir="$(mktemp -d -t tor_rebind_test.XXXXXX)"
|
||||
if [ -z "$tmpdir" ]; then
|
||||
echo >&2 mktemp failed
|
||||
exit 2
|
||||
|
Loading…
Reference in New Issue
Block a user