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 <skandigraun@gmail.com>
1 parent 785e1ac commit e6852ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)