From 1452b2cf83fddd3a0a26bf6a195e1ba021c62f3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Laboissi=C3=A8re?= Date: Sun, 11 Dec 2022 16:09:01 +0100 Subject: Use mktemp instead of the deprecated tempfile command --- add-authorized-keys | 2 +- add-git-user | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/add-authorized-keys b/add-authorized-keys index 3eef03f..7ed753a 100755 --- a/add-authorized-keys +++ b/add-authorized-keys @@ -74,7 +74,7 @@ if [ "$(file --brief $rsaid)" != "$type" ] ; then fi ### Install the key(s) -tmp=$(tempfile) +tmp=$(mktemp) if [ "$readonly" = yes ] ; then echo -n "command=\"read-only\" " > $tmp fi diff --git a/add-git-user b/add-git-user index 84660cb..2c4a60c 100755 --- a/add-git-user +++ b/add-git-user @@ -30,7 +30,7 @@ fi user=$1 ### Generate a temporary file with configuration for adduser -tmp=$(tempfile) +tmp=$(mktemp) ### Cleanup function cleanup(){ -- cgit v1.2.3