[Groonga-commit] droonga/droonga-engine at 3c65c48 [master] Don't use stdin as the input for "read".

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Sep 16 16:32:23 JST 2014


YUKI Hiroshi	2014-09-16 16:32:23 +0900 (Tue, 16 Sep 2014)

  New Revision: 3c65c488d422691c96575b09e2e8064fd10a07ab
  https://github.com/droonga/droonga-engine/commit/3c65c488d422691c96575b09e2e8064fd10a07ab

  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:24 +0900 (e86e928)
+++ install.sh    2014-09-16 16:32:23 +0900 (438af69)
@@ -153,7 +153,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����������������������������...
Descargar 



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