From e9add46de0cd1fbd0ace670701eec799b6b1aec4 Mon Sep 17 00:00:00 2001 From: eric5949 Date: Sat, 2 May 2026 01:01:58 -0400 Subject: [PATCH] update links back to main --- autoupdater/tetosong.service | 2 +- autoupdater/updater.sh | 12 ++++++------ installer.sh | 14 +++++++------- tetosong | 4 ++-- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/autoupdater/tetosong.service b/autoupdater/tetosong.service index 92b838e..012fa54 100644 --- a/autoupdater/tetosong.service +++ b/autoupdater/tetosong.service @@ -4,4 +4,4 @@ Wants=tetosong.timer [Service] Type=oneshot -ExecStart=/usr/bin/bash -c "curl -s https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/autoupdater/updater.sh | bash" +ExecStart=/usr/bin/bash -c "curl -s https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/updater.sh | bash" diff --git a/autoupdater/updater.sh b/autoupdater/updater.sh index 330d4a8..4c11a6f 100644 --- a/autoupdater/updater.sh +++ b/autoupdater/updater.sh @@ -13,10 +13,10 @@ rm -rf ~/.local/share/tetosong/fortunes/ mkdir -p ~/.local/share/tetosong mkdir -p ~/.local/share/tetosong/vocafortunes mkdir -p ~/.local/share/tetosong/vocafortunes/vocadb -curl -sLo ~/.local/share/tetosong/vocafortunes/vocadb/140308 https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/vocafortunes/vocadb/140308 +curl -sLo ~/.local/share/tetosong/vocafortunes/vocadb/140308 https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/vocafortunes/vocadb/140308 AUDIO="$(. ~/.local/share/tetosong/tetosong.config; echo $AUDIO)" if [ "$AUDIO" = "YES" ]; then - curl -sLo ~/.local/share/tetosong/SOTD.zip https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/audio/teto/SOTD.zip + curl -sLo ~/.local/share/tetosong/SOTD.zip https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/audio/teto/SOTD.zip mkdir -p ~/.local/share/tetosong/audio/ mkdir -p ~/.local/share/tetosong/audio/teto/ unzip -o ~/.local/share/tetosong/SOTD.zip -d ~/.local/share/tetosong/audio/teto/ @@ -30,8 +30,8 @@ if [ "$AUTOUPDATE" = "YES" ]; then # write and enable systemd service file and timer user services echo "Auto-Updater enabled, updating service..." mkdir -p ~/.config/systemd/user - curl -sLo ~/.config/systemd/user/tetosong.service https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/autoupdater/tetosong.service - curl -sLo ~/.config/systemd/user/tetosong.timer https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/autoupdater/tetosong.timer + curl -sLo ~/.config/systemd/user/tetosong.service https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/tetosong.service + curl -sLo ~/.config/systemd/user/tetosong.timer https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/tetosong.timer systemctl --user daemon-reload systemctl --user enable tetosong.timer systemctl --user start tetosong.timer @@ -41,8 +41,8 @@ fi # write tetosong to ~/.local/bin and tell the user how to use it. echo "writing tetosong to ~/.local/bin" mkdir -p ~/.local/bin -curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/tetosong -curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/vocafortune +curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong +curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/vocafortune chmod +x ~/.local/bin/tetosong chmod +x ~/.local/bin/vocafortune echo "Make sure ~/.local/bin is in your PATH and you can get your Teto Song Of the Day by typing in tetosong or adding it to your bashrc :)" diff --git a/installer.sh b/installer.sh index 3a8bd17..14de88b 100644 --- a/installer.sh +++ b/installer.sh @@ -9,12 +9,12 @@ echo "Downloading custom fortunes and config file..." # download the config file and prompt the user for options. mkdir -p ~/.local/share/tetosong -curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/tetosong.config +curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong.config read -p "Do you want to hear Teto in your terminal? (y/n) " yn case $yn in [Yy]* ) sed -i 's|^AUDIO=.*|AUDIO="YES"|' ~/.local/share/tetosong/tetosong.config - curl -sLo /tmp/SOTD.zip https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/audio/teto/SOTD.zip + curl -sLo /tmp/SOTD.zip https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/audio/teto/SOTD.zip mkdir -p ~/.local/share/tetosong/audio/ mkdir -p ~/.local/share/tetosong/audio/teto/ unzip -o /tmp/SOTD.zip -d ~/.local/share/tetosong/audio/teto/ @@ -33,7 +33,7 @@ esac mkdir -p ~/.local/share/tetosong/vocafortunes mkdir -p ~/.local/share/tetosong/vocafortunes/vocadb -curl -sLo ~/.local/share/tetosong/vocafortunes/vocadb/140308 https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/vocafortunes/vocadb/140308 +curl -sLo ~/.local/share/tetosong/vocafortunes/vocadb/140308 https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/vocafortunes/vocadb/140308 # set up autoupdater @@ -43,8 +43,8 @@ if [ "$AUTOUPDATE" = "YES" ]; then # write and enable systemd service file and timer user services echo "Autoupdater enabled, updating service..." mkdir -p ~/.config/systemd/user - curl -sLo ~/.config/systemd/user/tetosong.service https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/autoupdater/tetosong.service - curl -sLo ~/.config/systemd/user/tetosong.timer https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/autoupdater/tetosong.timer + curl -sLo ~/.config/systemd/user/tetosong.service https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/tetosong.service + curl -sLo ~/.config/systemd/user/tetosong.timer https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/tetosong.timer systemctl --user daemon-reload systemctl --user enable tetosong.timer systemctl --user start tetosong.timer @@ -54,8 +54,8 @@ fi # write tetosong to ~/.local/bin and tell the user how to use it. echo "writing tetosong to ~/.local/bin" mkdir -p ~/.local/bin -curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/tetosong -curl -sLo ~/.local/bin/vocafortune https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/vocafortune +curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong +curl -sLo ~/.local/bin/vocafortune https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/vocafortune chmod +x ~/.local/bin/tetosong chmod +x ~/.local/bin/vocafortune echo "Make sure ~/.local/bin is in your PATH and you can get your Teto Song Of the Day by typing in tetosong or adding it to your bashrc :)" diff --git a/tetosong b/tetosong index 79ea51f..4f07838 100644 --- a/tetosong +++ b/tetosong @@ -9,7 +9,7 @@ while [[ $# -gt 0 ]]; do case $1 in -u|--update) echo "Downloading tetosong updater..." - bash <(curl -s https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/autoupdater/updater.sh) + bash <(curl -s https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/autoupdater/updater.sh) shift exit 0 ;; @@ -31,7 +31,7 @@ done # check if the config file exists, if not download it if [ ! -f ~/.local/share/tetosong/tetosong.config ]; then echo "Config file not found, downloading default..." - curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/testing/tetosong.config + curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong.config fi # check if the user wants to play audio AUDIO="$(. ~/.local/share/tetosong/tetosong.config; echo $AUDIO)"