File: credentials-ssh-remove-key.sh

package info (click to toggle)
cockpit 356-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 317,176 kB
  • sloc: javascript: 775,374; python: 41,133; ansic: 33,875; cpp: 11,141; sh: 3,534; makefile: 581; xml: 262
file content (11 lines) | stat: -rw-r--r-- 171 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# SPDX-License-Identifier: LGPL-2.1-or-later

set -eu

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