diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..004df1b --- /dev/null +++ b/install.sh @@ -0,0 +1,15 @@ +#!/usr/bin/env bash +if [[ $1 == "release" ]] +then + mkdir -p /opt/invidious_update && \ + curl -sSL https://github.com/tmiland/Invidious-Updater/releases/latest/download/invidious_update.sh > /opt/invidious_update/invidious_update.sh && \ + chmod +x /opt/invidious_update/invidious_update.sh && \ + ln -s /opt/invidious_update/invidious_update.sh /usr/local/bin/invidious_update && \ + invidious_update +else + mkdir -p /opt/invidious_update && \ + curl -sSL https://github.com/tmiland/Invidious-Updater/raw/master/invidious_update.sh > /opt/invidious_update/invidious_update.sh && \ + chmod +x /opt/invidious_update/invidious_update.sh && \ + ln -s /opt/invidious_update/invidious_update.sh /usr/local/bin/invidious_update && \ + invidious_update +fi