27 |
NOCOLORS=0 |
NOCOLORS=0 |
28 |
WEBCRLF=0 |
WEBCRLF=0 |
29 |
QUIET=0 |
QUIET=0 |
30 |
|
# daemon silent mode, read from env |
31 |
|
: ${SILENT=0} |
32 |
|
|
33 |
# argvs are global variables - this fixes issues with whitespaces |
# argvs are global variables - this fixes issues with whitespaces |
34 |
# global argvs, the whole command line |
# global argvs, the whole command line |
40 |
valid_session=no |
valid_session=no |
41 |
|
|
42 |
# tell what we are |
# tell what we are |
43 |
echo "Connected to $(print_version)" |
[[ ${SILENT} = 1 ]] || echo "Connected to $(print_version)" |
44 |
|
|
45 |
while [[ ${run} = run ]] |
while [[ ${run} = run ]] |
46 |
do |
do |
47 |
# use an echo here not read -p '>' because sslsvd ignores the prompt pattern |
# use an echo here not read -p '>' because sslsvd ignores the prompt pattern |
48 |
echo -n '> ' |
[[ ${SILENT} = 1 ]] || echo -n '> ' |
49 |
read line |
read line |
50 |
eval "GLOBAL_ARGV=( ${line} )" |
eval "GLOBAL_ARGV=( ${line} )" |
51 |
|
|