Break Shell While Loop

workdone=0
while : ; do
  ...
  if [ "$workdone" -ne 0 ]; then
      break
  fi
done
Pleasant Pigeon