remwharead/browser-plugins/webextension/native-wrapper/remwharead_wrapper.sh
tastytea 65c0bfc7ea
All checks were successful
continuous-integration/drone/push Build is passing
Improved webextension and wrapper script.
Got rid of the form, it was causing errors. Sending back a test
message worked.
2019-05-21 09:42:58 +02:00

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"'