#!/bin/env bash

prompt_me() {
  local input=
  read -n 1 -p "Continue?[y/n] > " input
  input=$(echo -n "$input" | tr [a-z] [A-Z])
  echo
  case $input in
    "Y"|"YES"|"JA"|"J")
      return 0
      ;;
    "N"|"NO"|"NEIN")
      return 1
      ;;
    *)
      prompt_me
      ;;
  esac
}

prompt_me

Move prompt me script from bash utils
Move prompt me script from bash utils
