#!/bin/bash if [ -z "$ROKU_DEV_PASSWORD" ]; then echo "You need to set ROKU_DEV_PASSWORD:" echo "export ROKU_DEV_PASSWORD=" exit 1 fi if [ -z "$ROKU_DEV_TARGET" ]; then echo "You need to set ROKU_DEV_TARGET:" echo "export ROKU_DEV_TARGET=" exit 1 fi curl -f -sS --user rokudev:$ROKU_DEV_PASSWORD --anyauth -F "mysubmit=Delete" -F"archive=" http://$ROKU_DEV_TARGET/plugin_install \ | python -c 'import sys, re; print("\n".join(re.findall("(.*?)", sys.stdin.read(), re.DOTALL)))'