summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2016-05-02 23:40:03 -0400
committerAndrew Cady <d@jerkface.net>2016-05-02 23:40:03 -0400
commit752d031cf971366f9d5028a4a6fe70e58e03b7e5 (patch)
tree90fc8f250143e6f9f8ea9eb5ac6f4f61b2a65417 /src
parentc7f98efa895d14a7bf1caa6f567050a6abcb15ce (diff)
fix btarfs to support output to non-cwd
Diffstat (limited to 'src')
-rwxr-xr-xsrc/btarfs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/btarfs b/src/btarfs
index bdd44de..a51b2ef 100755
--- a/src/btarfs
+++ b/src/btarfs
@@ -48,7 +48,7 @@ done
48 48
49create() 49create()
50{ 50{
51 TMPFILE=.~."$FILE" 51 TMPFILE=$(dirname "$FILE")/.~.$(basename "$FILE")
52# [ ! -e "$FILE" ] || die "refusing to overwrite '$FILE'" 52# [ ! -e "$FILE" ] || die "refusing to overwrite '$FILE'"
53# [ ! -e "$TMPFILE" ] || die "refusing to overwrite '.~.$FILE'" 53# [ ! -e "$TMPFILE" ] || die "refusing to overwrite '.~.$FILE'"
54 rm -f "$TMPFILE" 54 rm -f "$TMPFILE"