Update installer.sh

This commit is contained in:
2026-04-21 10:37:29 -04:00
parent a52c877bfb
commit 7f853e4cf8

View File

@@ -20,21 +20,24 @@ else
echo 'fortune found' >&2 echo 'fortune found' >&2
fi fi
mkdir -p ~/.local/share/fortune mkdir -p ~/.local/share/tetosong
curl -L -o ~/.local/share/fortune/tetofortunes https://gitea.cloudaf.cc/eric/TetoSongOfTheDay/raw/branch/main/tetofortunes curl -L -o ~/.local/share/tetosong/tetofortunes https://github.com/eric5949/TetoSongOfTheDay/raw/a52c877bfb1508f0223469e3b9e86c65ee6915ae/tetofortunes
curl -L -o ~/.local/share/fortune/tetofortunes.dat https://gitea.cloudaf.cc/eric/TetoSongOfTheDay/raw/branch/main/tetofortunes.dat curl -L -o ~/.local/share/tetosong/tetofortunes.dat https://github.com/eric5949/TetoSongOfTheDay/raw/a52c877bfb1508f0223469e3b9e86c65ee6915ae/tetofortunes.dat
#cat > $wineprefix_path/tetosong <<EOF cat > ~/.local/bin/tetosong <<EOF
#!/bin/bash #!/bin/bash
#if ! [ -x "$(command -v fortune)" ]; then if ! [ -x "$(command -v fortune)" ]; then
# echo 'fortune is not installed, checking for misfortune' >&2 echo 'fortune is not installed, checking for misfortune' >&2
# if ! [ -x "$(command -v misfortune)" ]; then if ! [ -x "$(command -v misfortune)" ]; then
# echo 'neither program is installed, exiting' >&2 echo 'neither program is installed, exiting' >&2
# exit 1 exit 1
# else fi
# echo 'misfortune found' >&2 else
# fi fortune ~/.local/share/tetosong/tetofortunes
#else fi
# fortune ~/.local/share/tetofortunes/tetofortunes EOF
#fi
#EOF chmod +x ~/.local/bin/tetosong
echo "you can get your Teto Song Of the Day by typing in tetosong or adding it to your bashrc :)"