From: Matt Joiner Date: Fri, 8 Sep 2023 02:41:20 +0000 (+1000) Subject: Handle torrentfs failure in test.sh X-Git-Url: http://www.git.stargrave.org/?p=btrtrc.git;a=commitdiff_plain;h=e8abaf00aef7b3985ec3255290ab408291f49953 Handle torrentfs failure in test.sh --- diff --git a/fs/test.sh b/fs/test.sh index abae61a4..5374ed86 100755 --- a/fs/test.sh +++ b/fs/test.sh @@ -26,7 +26,9 @@ check_file() { } ( check_file ) & +check_file_pid=$! +trap "kill $torrentfs_pid $check_file_pid" EXIT wait -n status=$? sudo umount mnt