I try to get the value this command in a bash script returns but, It seem not to be returning anything
rr=$(read -p Enter -r)
echo "Is $rr"
read -p "java archive detected, Enter Y to download it again, N to continue $nl" -r
if [[ $REPLY =~ ^[Yy]$ ]] && [[ $(read -p Enter -r) == "Y" ]]; then
echo "Y entered $REPLY"
break;
elif [[ $REPLY =~ ^[Nn]$ ]]; then
echo "java Archive was extracted successfully to $java8Dir $nl"
fi