File: credentials-ssh-remove-key.sh

package info (click to toggle)
cockpit-podman 67-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,520 kB
  • sloc: javascript: 13,262; python: 6,107; sh: 579; makefile: 146; xml: 16
file content (10 lines) | stat: -rw-r--r-- 126 bytes parent folder | download | duplicates (20)
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