changeset 6343:f97cd23d1cbb

Fix bashism of unix lilypond-installer Some distribution's /bin/sh are not bash but ash etc. ``read -sn1'' is failed in ash.
author Masamichi Hosoda <trueroad@users.noreply.github.com>
date Fri, 20 Feb 2015 20:08:05 +0900
parents 56b99283872a
children 8ee6cd76df7f
files sourcefiles/lilypond-sharhead.sh
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sourcefiles/lilypond-sharhead.sh	Sat Feb 07 18:35:47 2015 +0900
+++ b/sourcefiles/lilypond-sharhead.sh	Fri Feb 20 20:08:05 2015 +0900
@@ -77,7 +77,7 @@
 Press C to install the program anyway (not recommended),
 E to only extract the program files, or any other key to exit.
 EOF
-    read -sn1 input
+    read -sn1 input 2> /dev/null || read input
     case "$input" in
 	C)
 	  echo "Ignoring architecture incompatibility."