Created
March 16, 2021 13:10
-
-
Save Vac1911/1d78b900fbf62215c498ac7b772d3f62 to your computer and use it in GitHub Desktop.
Script to install pear
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect | |
spawn wget -O /tmp/go-pear.phar http://pear.php.net/go-pear.phar | |
expect eof | |
spawn php /tmp/go-pear.phar | |
expect "1-11, 'all' or Enter to continue:" | |
send "\r" | |
expect eof | |
spawn rm /tmp/go-pear.phar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment