X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/80e2389990082500d76eb566d4946be3e786c3ef..d8f41ccd20de16f8ebe2ccc84d47bf1cb2b26bbb:/SecurityTests/clxutils/sslScripts/doprompt diff --git a/SecurityTests/clxutils/sslScripts/doprompt b/SecurityTests/clxutils/sslScripts/doprompt new file mode 100755 index 00000000..d2065109 --- /dev/null +++ b/SecurityTests/clxutils/sslScripts/doprompt @@ -0,0 +1,25 @@ +#! /bin/sh +SSL_WAIT=1 + +usage () +{ + echo "Usage: doPrompt sslAuto [q(uiet)]"; + exit 1; +} + +QUIET=0 +if [ $# = 0 ]; then + usage +fi +SSL_AUTO=$1 +if [ $# == 2 ]; then + QUIET=$2 +fi +if [ "$SSL_AUTO" = '1' ]; then + if [ "$QUIET" = "0" ]; then + echo "Pause..." + fi + sleep $SSL_WAIT; + exit; +fi +read -p "Hit CR to continue: " foo