Skip to content

Commit

Permalink
Update build_opencv.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh1993 authored Sep 24, 2020
1 parent 3d3bbbb commit cf75cee
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions build_opencv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,7 @@ else
fi

cleanup () {
# https://stackoverflow.com/questions/226703/how-do-i-prompt-for-yes-no-cancel-input-in-a-linux-shell-script
while true ; do
echo "Do you wish to remove temporary build files in /tmp/build_opencv ? "
if ! [[ "$1" -eq "--test-warning" ]] ; then
echo "(Doing so may make running tests on the build later impossible)"
fi
read -p "Y/N " yn
case ${yn} in
[Yy]* ) rm -rf /tmp/build_opencv ; break;;
[Nn]* ) exit ;;
* ) echo "Please answer yes or no." ;;
esac
done
rm -rf /tmp/build_opencv ;
}

setup () {
Expand Down

0 comments on commit cf75cee

Please sign in to comment.