summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"