Skip to content

Commit

Permalink
Create install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tmiland committed Oct 6, 2024
1 parent ae0ef28 commit 2eb9d13
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2eb9d13

Please sign in to comment.