summaryrefslogtreecommitdiff
path: root/qr
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2022-04-10 21:57:10 +0200
committerPeter Palfrader <peter@palfrader.org>2022-04-10 21:57:10 +0200
commitee41dfe23f689965c8a15868a38c5fe6c92da091 (patch)
tree7d1b7add704b5de4aa4420371ef17bb3de2e27ea /qr
parentedbca085af273b0dd3aaf2a51dfd4755631d3605 (diff)
replace tempfile with mktempHEADmaster
Diffstat (limited to 'qr')
-rwxr-xr-xqr4
1 files changed, 2 insertions, 2 deletions
diff --git a/qr b/qr
index f736178..4c82369 100755
--- a/qr
+++ b/qr
@@ -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"