mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
a8d6e8bb14
confirmation before installing.
28 lines
328 B
Bash
28 lines
328 B
Bash
#!/bin/sh
|
|
|
|
case $2 in
|
|
PRE-INSTALL)
|
|
${PAGER:-more} share/doc/opera/LICENSE
|
|
echo
|
|
echo
|
|
echo -n 'Do you agree to the terms of the license? '
|
|
read answer
|
|
case ${answer} in
|
|
[Yy]|[Yy][Ee][Ss])
|
|
exit 0
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|
|
;;
|
|
POST-INSTALL)
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "Unexpected Argument $2!!!"
|
|
exit 1
|
|
;;
|
|
esac
|
|
|