diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-11-27 11:41:24 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-11-27 11:41:24 +1300 |
commit | 82e75fd244defc3bcb45495c34f67b26956f58a1 (patch) | |
tree | 775fb47f2ef4f48f16285fac72107a683023d1af /bin | |
parent | Remove a now-inapplicable comment (diff) | |
download | dotfiles-82e75fd244defc3bcb45495c34f67b26956f58a1.tar.gz dotfiles-82e75fd244defc3bcb45495c34f67b26956f58a1.zip |
Fix up some mktemp(1) templates
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/edda | 2 | ||||
-rwxr-xr-x | bin/han | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -51,7 +51,7 @@ for arg ; do done # Duplicate stdin into a file, which we'll remove on exit -stdin=$(mktemp) || exit +stdin=$(mktemp -dt "$self".XXXXXX) || exit cleanup() { rm -f -- "$stdin" } @@ -36,7 +36,7 @@ if ((BASH_VERSINFO[0] >= 4)) ; then fi # Create a temporary file and set up a trap to get rid of it. -tmpdir=$(mktemp -dt "$self".XXXXX) || exit +tmpdir=$(mktemp -dt "$self".XXXXXX) || exit cleanup() { rm -fr -- "$tmpdir" } |