wok-current rev 9212
nvidia: allow post_install without tty
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 11 09:31:56 2011 +0100 (2011-03-11) |
parents | 98aea7827eeb |
children | 8ca0fdca7d34 |
files | nvidia/receipt |
line diff
1.1 --- a/nvidia/receipt Fri Mar 11 09:08:36 2011 +0100 1.2 +++ b/nvidia/receipt Fri Mar 11 09:31:56 2011 +0100 1.3 @@ -95,8 +95,8 @@ 1.4 echo "For installing this package, you have to accept the $PACKAGE license." 1.5 echo "The license is stored in /usr/share/licenses/$PACKAGE " 1.6 echo -n "Would you like to read the license (y/N) : "; read anser 1.7 - if [ "$anser" = "y" ]; then 1.8 - cat /usr/share/licenses/"$PACKAGE"/LICENSE | more 1.9 + if [ "$anser" = "y" -a "$(tty)" != "not a tty" ]; then 1.10 + more < /usr/share/licenses/"$PACKAGE"/LICENSE 1.11 echo "" 1.12 fi 1.13 echo "================================================================================"