From ee41dfe23f689965c8a15868a38c5fe6c92da091 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sun, 10 Apr 2022 21:57:10 +0200 Subject: replace tempfile with mktemp --- qr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qr') 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" -- cgit v1.2.3