Skip to content

Commit

Permalink
fix install fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
kiorky committed Jun 29, 2023
1 parent 1182081 commit 1ad678c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1330,6 +1330,10 @@ reinstall_egg_path() {
try_fix_ansible() {
bs_log "Try to fix ansible tree"
local COPS_PYTHON=${COPS_PYTHON:-$(get_cops_python)}
if ! ( $COPS_PYTHON -m pip --version );then
log "Trying to install missing dependencies(fix)"
install_prerequisites || die "install prereqs(fix) failed"
fi
if ( noisy_test_ansible_state 2>&1| grep -iq pkg_resources.DistributionNotFound ) &&
[ -e "$(get_eggs_src_dir)/ansible/.git" ] && \
( $COPS_PYTHON -m pip --version >/dev/null 2>&1 );then
Expand Down

0 comments on commit 1ad678c

Please sign in to comment.