]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/sslScripts/doprompt
Security-57031.1.35.tar.gz
[apple/security.git] / SecurityTests / clxutils / sslScripts / doprompt
1 #! /bin/sh
2 SSL_WAIT=1
3
4 usage ()
5 {
6 echo "Usage: doPrompt sslAuto [q(uiet)]";
7 exit 1;
8 }
9
10 QUIET=0
11 if [ $# = 0 ]; then
12 usage
13 fi
14 SSL_AUTO=$1
15 if [ $# == 2 ]; then
16 QUIET=$2
17 fi
18 if [ "$SSL_AUTO" = '1' ]; then
19 if [ "$QUIET" = "0" ]; then
20 echo "Pause..."
21 fi
22 sleep $SSL_WAIT;
23 exit;
24 fi
25 read -p "Hit CR to continue: " foo