prompt.sh 273 B

123456789101112
  1. #!/bin/bash
  2. DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  3. echo -n "Toolchain has not been built. Would you like to build it now? (y/n) " >&2
  4. read response
  5. case $response in
  6. [yY]) bash $DIR/build-gcc.sh >&2 ;;
  7. [nN]) echo -n "n" && exit 1 ;;
  8. *)
  9. esac