only fail on known hosts

This commit is contained in:
Wryn Wagner 2021-09-27 13:18:13 -06:00
parent 0a6af9ff42
commit c7b5dd616c

View File

@ -71,9 +71,8 @@ _CA__GET_REMOTE_TARGET() {
echo $CODE_ACTIVATOR__KNOWN_TARGETS | grep -q "$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="$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 | grep -q '\.git$' || REMOTE_TARGET="$REMOTE_TARGET.git"
echo $REMOTE_TARGET echo $REMOTE_TARGET