The script tried to read from stdin wihch is already consumed from the pipe. Altered to read from the TTY not STDIN