tastytea
65c0bfc7ea
All checks were successful
continuous-integration/drone/push Build is passing
Got rid of the form, it was causing errors. Sending back a test message worked.
21 lines
364 B
Bash
Executable File
21 lines
364 B
Bash
Executable File
#!/bin/bash
|
|
args=""
|
|
start=0
|
|
|
|
# Read everything betweeen " and the next " into args.
|
|
while IFS= read -r -n1 c; do
|
|
if [[ ${start} -eq 0 ]]; then
|
|
[[ "${c}" == '"' ]] && start=1
|
|
continue
|
|
fi
|
|
if [[ "$c" != '"' ]] ; then
|
|
args="${args}$c"
|
|
continue
|
|
fi
|
|
break;
|
|
done
|
|
|
|
remwharead ${args}
|
|
|
|
echo -en '\x06\x00\x00\x00''"test"'
|