]> Sergey Matveev's repositories - btrtrc.git/commitdiff
fs/unwedge-tests: Can't assume /tmp on OSX
authorMatt Joiner <anacrolix@gmail.com>
Wed, 28 Jan 2015 11:39:12 +0000 (22:39 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Wed, 28 Jan 2015 11:39:12 +0000 (22:39 +1100)
fs/unwedge-tests

index 69dacc89ea97e2aed172062352b56795a05ab3f1..322a2802a283c5c5ff93e8fb091fcb95af1ad66a 100755 (executable)
@@ -1,5 +1,5 @@
 shopt -s nullglob
-for a in /tmp/torrentfs*; do
+for a in "${TMPDIR:-/tmp}"/torrentfs*; do
        sudo umount -f "$a/mnt"
        rm -r -- "$a"
-done
\ No newline at end of file
+done