diff --git a/installer.sh b/installer.sh index 4e81c10..bf911e1 100644 --- a/installer.sh +++ b/installer.sh @@ -15,10 +15,10 @@ fi # download custom fortunes and config file echo "Downloading custom fortunes and config file..." mkdir -p ~/.local/share/tetosong -curl -sLo ~/.local/share/tetosong/tetofortunes https://github.com/eric5949/TetoSongOfTheDay/raw/a52c877bfb1508f0223469e3b9e86c65ee6915ae/tetofortunes -curl -sLo ~/.local/share/tetosong/tetofortunes.dat https://github.com/eric5949/TetoSongOfTheDay/raw/a52c877bfb1508f0223469e3b9e86c65ee6915ae/tetofortunes.dat -curl -sLo ~/.local/share/tetosong/tetosong.config https://github.com/eric5949/TetoSongOfTheDay/raw/a52c877bfb1508f0223469e3b9e86c65ee6915ae/tetosong.config -curl -sLo ~/.local/share/tetosong/sv2SOTD.wav https://github.com/eric5949/TetoSongOfTheDay/raw/a52c877bfb1508f0223469e3b9e86c65ee6915ae/sv2SOTD.wav +curl -sLo ~/.local/share/tetosong/tetofortunes https://raw.githubusercontent.com/eric5949/TetoSongOfTheDay/refs/heads/main/tetofortunes +curl -sLo ~/.local/share/tetosong/tetofortunes.dat https://raw.githubusercontent.com/eric5949/TetoSongOfTheDay/refs/heads/main/tetofortunes.dat +curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/TetoSongOfTheDay/refs/heads/main/tetosong.config +curl -sLo ~/.local/share/tetosong/sv2SOTD.wav https://raw.githubusercontent.com/eric5949/TetoSongOfTheDay/refs/heads/main/sv2SOTD.wav # prompt the user to hear Teto in their terminal read -p "Do you want to hear Teto in your terminal? (y/n) " yn @@ -31,6 +31,6 @@ esac # 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://github.com/eric5949/TetoSongOfTheDay/raw/a52c877bfb1508f0223469e3b9e86c65ee6915ae/tetosong +curl -sLo ~/.local/bin/tetosong https://raw.githubusercontent.com/eric5949/TetoSongOfTheDay/refs/heads/main/tetosong chmod +x ~/.local/bin/tetosong 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 8b7742f..33777f7 100644 --- a/tetosong +++ b/tetosong @@ -2,7 +2,7 @@ # 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://github.com/eric5949/TetoSongOfTheDay/raw/a52c877bfb1508f0223469e3b9e86c65ee6915ae/tetosong.config + curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/TetoSongOfTheDay/refs/heads/main/tetosong.config fi # check if the user wants to play audio AUDIO="$(. ~/.local/share/tetosong/tetosong.config; echo $AUDIO)"