File: credentials-ssh-remove-key.sh

package info (click to toggle)
cockpit-machines 332-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 6,848 kB
  • sloc: python: 13,385; javascript: 7,457; sh: 889; makefile: 146; xml: 21
file content (10 lines) | stat: -rw-r--r-- 126 bytes parent folder | download | duplicates (14)
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