diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2012-12-09 14:57:17 +0100 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2012-12-09 14:57:17 +0100 |
commit | 76b80c6108d14d17c343624329f948b612d5512d (patch) | |
tree | c7dfbc822a7ccfa1726d2e172887544193fc34e8 | |
parent | dd0fa2d4c32ea76a200bbd9a62691d4fd0f551ba (diff) | |
download | rdumpfs-76b80c6108d14d17c343624329f948b612d5512d.tar.gz rdumpfs-76b80c6108d14d17c343624329f948b612d5512d.tar.xz rdumpfs-76b80c6108d14d17c343624329f948b612d5512d.zip |
create tempfile in $TMPDIR, not cwd
-rwxr-xr-x | rdumpfs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rdumpfs b/rdumpfs index 54225ed..ec7482e 100755 --- a/rdumpfs +++ b/rdumpfs @@ -40,7 +40,7 @@ if [[ "$last" = "$now" ]]; then rsync_args+=(--delete-delay --delete-excluded) fi -LOGFILE=$(mktemp .rdumpfs.XXXXXXXX.log) +LOGFILE=$(mktemp -t .rdumpfs.XXXXXXXX.log) trap "rm -f $LOGFILE" INT QUIT TERM HUP EXIT rsync --log-file $LOGFILE "${rsync_args[@]}" "${src[@]}" "$dst/$now" |