Merge pull request #2733 from Security-Onion-Solutions/automation/ssh_prompts

fix if statement for isntalling sshpass
This commit is contained in:
Josh Patterson
2021-01-26 09:57:32 -05:00
committed by GitHub

View File

@@ -130,7 +130,7 @@ if [[ -f automation/$automation && $(basename $automation) == $automation ]]; th
if [[ ! $is_iso ]]; then
echo "Installing sshpass for automated testing." >> $setup_log 2>&1
if [ "$OS" == ubuntu ]; then
if wait_for_apt; then apt-get -y install sshpass >> $setup_log 2>&1
if wait_for_apt; then apt-get -y install sshpass >> $setup_log 2>&1; else exit 1; fi
else
yum -y install sshpass >> $setup_log 2>&1
fi