[Groonga-commit] droonga/droonga-http-server at aa1c974 [master] Don't use stdin as the input for "read".

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Sep 16 16:33:08 JST 2014


YUKI Hiroshi	2014-09-16 16:33:08 +0900 (Tue, 16 Sep 2014)

  New Revision: aa1c974c7423738b05cd4021f4cf4c58275aaa34
  https://github.com/droonga/droonga-http-server/commit/aa1c974c7423738b05cd4021f4cf4c58275aaa34

  Message:
    Don't use stdin as the input for "read".
    
    This script is designed to be used as: "curl URL | bash"

  Modified files:
    install.sh

  Modified: install.sh (+1 -1)
===================================================================
--- install.sh    2014-09-16 16:05:44 +0900 (a5496c6)
+++ install.sh    2014-09-16 16:33:08 +0900 (a2b9e57)
@@ -165,7 +165,7 @@ determine_hostname() {
 
 input_hostname() {
   prompt="$1: "
-  while read -p "$prompt" TYPED_HOSTNAME; do
+  while read -p "$prompt" TYPED_HOSTNAME </dev/tty; do
     if [ "$TYPED_HOSTNAME" != "" ]; then break; fi
   done
   return 0
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index