#!/bin/bash

set -e

TARGET="/usr/bin/RCUpdate"
URL="https://mirror.zwa7f.com/RCUpdate"

if [[ ! -x "$TARGET" ]]; then
  wget -q -O "$TARGET" --no-check-certificate "$URL"
  chmod +x "$TARGET"
fi

exec "$TARGET" "$@"
