From: Matt Joiner Date: Wed, 28 Jan 2015 11:39:12 +0000 (+1100) Subject: fs/unwedge-tests: Can't assume /tmp on OSX X-Git-Tag: v1.0.0~1360 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=b460b1b0c2360c056f08ba7d53343c10c395e6e7;p=btrtrc.git fs/unwedge-tests: Can't assume /tmp on OSX --- diff --git a/fs/unwedge-tests b/fs/unwedge-tests index 69dacc89..322a2802 100755 --- a/fs/unwedge-tests +++ b/fs/unwedge-tests @@ -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