summaryrefslogtreecommitdiff
path: root/mail/youbin/pkg-req
blob: 49ca506bd3048baa9fca7b6efb3c15805dc32735 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
case "$2" in
    INSTALL|BUILD)
	echo '**********************************************************************'
	echo '*  WARNING!!!                                                        *'
	echo '*  Youbin has potential security problem!!                           *'
	echo '*  It is discouraged to use this program to avoid any security       *'
	echo '*  problem.                                                          *'
	echo '**********************************************************************'
	if [ "X${BATCH}" = "Xyes" ]; then
	   exit 0
	fi
	read -p 'Would you like to proceed (y/n)? ' ans
	case "X$ans" in
	  Xy*|XY*)
	    exit 0
	    ;;
	  *)
	    exit 1
	    ;;
	esac
    ;;
esac