Skip to content

Commit e6852ff

Browse files
OldManYellsAtCloudkeszybz
authored andcommitted
tests: fix cleanup
The cleanup routine cleared the variable holding the temp dir name before it was deleted, so it wasn't deleted. This commit first deletes the temp folder, and clears the variable afterwards. Signed-off-by: Gyorgy Sarvari <[email protected]>
1 parent 785e1ac commit e6852ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
d=
33
cleanup() {
44
if [ -n "$d" ]; then
5-
d=
65
rm -rf "$d"
6+
d=
77
fi
88
}
99
trap cleanup EXIT

0 commit comments

Comments
 (0)