summaryrefslogtreecommitdiffstats
path: root/pkg/lib/credentials-ssh-remove-key.sh
blob: 39ac0381d82ac260b9d66b41d53fef343558395c (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

set -eu

tempfile=$(mktemp)
echo "$1" > "$tempfile"
ret=0
ssh-add -d "$tempfile" || ret=1
rm "$tempfile"
exit $ret