diff options
author | Peter Palfrader <peter@palfrader.org> | 2022-04-10 21:57:10 +0200 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2022-04-10 21:57:10 +0200 |
commit | ee41dfe23f689965c8a15868a38c5fe6c92da091 (patch) | |
tree | 7d1b7add704b5de4aa4420371ef17bb3de2e27ea /qr | |
parent | edbca085af273b0dd3aaf2a51dfd4755631d3605 (diff) |
replace tempfile with mktemp
Diffstat (limited to 'qr')
-rwxr-xr-x | qr | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -67,7 +67,7 @@ done shift $(($OPTIND - 1)) -img="$(tempfile --suffix .png)" +img="$(mktemp --suffix .png)" trap "rm -f '$img'" EXIT @@ -86,7 +86,7 @@ elif [ "$have_msg" -eq 0 ]; then fi if [ "$#" -eq 0 ]; then - stdin="$(tempfile)" + stdin="$(mktemp)" trap "rm -f '$img' '$stdin'" EXIT cat > "$stdin" set -- "$stdin" |