aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Laboissière <rafael@laboissiere.net>2022-12-11 16:09:01 +0100
committerRafael Laboissière <rafael@laboissiere.net>2022-12-11 16:14:28 +0100
commit1452b2cf83fddd3a0a26bf6a195e1ba021c62f3f (patch)
tree7c326345ec51b90648e2fc813739b526368efcac
parentf369d82e136a93589f1b1d6c255b10de48e48db4 (diff)
Use mktemp instead of the deprecated tempfile command
-rwxr-xr-xadd-authorized-keys2
-rwxr-xr-xadd-git-user2
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(){