On Debian 12 (bookworm), tempfile comes from debianutils, and prints a deprecation warning:
WARNING: tempfile is deprecated; consider using mktemp instead. Switch to mktemp from coreutils, which is widely available. Signed-off-by: Roland Hieber <r...@pengutronix.de> --- scripts/git-ptx-refresh-tags-editor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/git-ptx-refresh-tags-editor b/scripts/git-ptx-refresh-tags-editor index fcc9c78f3c7d..0177ad3a0194 100755 --- a/scripts/git-ptx-refresh-tags-editor +++ b/scripts/git-ptx-refresh-tags-editor @@ -26,7 +26,7 @@ push_tags() { filter_rebase() { file="${1}" - tmpfile="$(tempfile -d "$(dirname "${file}")" -p "$(basename ${file}).")" + tmpfile="$(mktemp "${file}.XXXXX")" tags= cat "${file}" | while read cmd commitish subject; do case "${cmd}" in -- 2.39.2