diff options
author | Andrew Cady <d@jerkface.net> | 2016-05-02 23:40:03 -0400 |
---|---|---|
committer | Andrew Cady <d@jerkface.net> | 2016-05-02 23:40:03 -0400 |
commit | 752d031cf971366f9d5028a4a6fe70e58e03b7e5 (patch) | |
tree | 90fc8f250143e6f9f8ea9eb5ac6f4f61b2a65417 /src/btarfs | |
parent | c7f98efa895d14a7bf1caa6f567050a6abcb15ce (diff) |
fix btarfs to support output to non-cwd
Diffstat (limited to 'src/btarfs')
-rwxr-xr-x | src/btarfs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -48,7 +48,7 @@ done | |||
48 | 48 | ||
49 | create() | 49 | create() |
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" |