mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-03-03 21:00:31 +08:00
Provide return values
This commit is contained in:
parent
03e568ad81
commit
25ed84afb6
@ -78,8 +78,9 @@ function ssh_fingerprint() {
|
||||
local f
|
||||
for f in "${keyfiles[@]}"; do
|
||||
if [[ $quiet != "-q" ]]; then printf "${ansi[1]}$f:${ansi[2]}\n"; fi
|
||||
ssh-keygen -l -E "$fptype" -f "$f"
|
||||
if ! ssh-keygen -l -E "$fptype" -f "$f"; then return $?; fi
|
||||
done
|
||||
return 0
|
||||
}
|
||||
alias ssh_fp='ssh_fingerprint'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user