only fail on known hosts
This commit is contained in:
parent
0a6af9ff42
commit
c7b5dd616c
@ -71,10 +71,9 @@ _CA__GET_REMOTE_TARGET() {
|
||||
|
||||
echo $CODE_ACTIVATOR__KNOWN_TARGETS | grep -q "$REMOTE_TARGET" && {
|
||||
REMOTE_TARGET="$REMOTE_TARGET$(echo | $_CA__FZF --print-query --prompt "$REMOTE_TARGET" | tail -1)"
|
||||
[[ $REMOTE_TARGET == $FIRST_SELECTION ]] && return ''
|
||||
}
|
||||
|
||||
[[ $REMOTE_TARGET == $FIRST_SELECTION ]] && return ''
|
||||
|
||||
echo $REMOTE_TARGET | grep -q '\.git$' || REMOTE_TARGET="$REMOTE_TARGET.git"
|
||||
echo $REMOTE_TARGET
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user