#!/bin/bash
read -p 'Input something > ' one_thing
while true; do
read -p 'Input something else > ' another_thing
# Write some code to check if the requirements are met
# Let's say in this case they are when the variable `thing_to_work` equals `done`
if [[ "${thing_to_work}" == 'abcde' ]]; then
break # Exit the loop
else
echo 'The requirements were not met, so the loop will start again'
fi
done