moving things around
prepwork for easter eggs
This commit is contained in:
@@ -1,14 +1,17 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
# download custom fortunes and config file
|
# download custom fortunes and config file
|
||||||
echo "Updating tetosong..."
|
echo "Updating tetosong..."
|
||||||
|
|
||||||
|
# past here is a modified installer.sh, if i build an update option into installer.sh i cant get it to run correctly with the curl command
|
||||||
|
|
||||||
# check if the config file exists, if not download it and prompt the user for options.
|
# check if the config file exists, if not download it and prompt the user for options.
|
||||||
if [ ! -f ~/.local/share/tetosong/tetosong.config ]; then
|
if [ ! -f ~/.local/share/tetosong/tetosong.config ]; then
|
||||||
echo "Config file not found, downloading default..."
|
echo "Config file not found, downloading default..."
|
||||||
curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong.config
|
curl -sLo ~/.local/share/tetosong/tetosong.config https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetosong.config
|
||||||
fi
|
fi
|
||||||
mkdir -p ~/.local/share/tetosong
|
mkdir -p ~/.local/share/tetosong
|
||||||
curl -sLo ~/.local/share/tetosong/tetofortunes https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetofortunes
|
curl -sLo ~/.local/share/tetosong/tetofortunes https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/fortunes/tetosotd/tetofortunes
|
||||||
curl -sLo ~/.local/share/tetosong/tetofortunes.dat https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetofortunes.dat
|
curl -sLo ~/.local/share/tetosong/tetofortunes.dat https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/fortunes/tetosotd/tetofortunes.dat
|
||||||
curl -sLo ~/.local/share/tetosong/sv2SOTD.wav https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/sv2SOTD.wav
|
curl -sLo ~/.local/share/tetosong/sv2SOTD.wav https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/sv2SOTD.wav
|
||||||
|
|
||||||
# set up autoupdater
|
# set up autoupdater
|
||||||
|
|||||||
@@ -30,8 +30,8 @@ case $yn in
|
|||||||
* ) echo "Please answer yes or no.";;
|
* ) echo "Please answer yes or no.";;
|
||||||
esac
|
esac
|
||||||
mkdir -p ~/.local/share/tetosong
|
mkdir -p ~/.local/share/tetosong
|
||||||
curl -sLo ~/.local/share/tetosong/tetofortunes https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetofortunes
|
curl -sLo ~/.local/share/tetosong/fortunes/tetosotd/tetofortunes https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/fortunes/tetosotd/tetofortunes
|
||||||
curl -sLo ~/.local/share/tetosong/tetofortunes.dat https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/tetofortunes.dat
|
curl -sLo ~/.local/share/tetosong/fortunes/tetosotd/tetofortunes.dat https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/fortunes/tetosotd/tetofortunes.dat
|
||||||
curl -sLo ~/.local/share/tetosong/sv2SOTD.wav https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/sv2SOTD.wav
|
curl -sLo ~/.local/share/tetosong/sv2SOTD.wav https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/sv2SOTD.wav
|
||||||
|
|
||||||
# set up autoupdater
|
# set up autoupdater
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ while true; do
|
|||||||
echo ""
|
echo ""
|
||||||
echo "▼・ᴗ・▼"
|
echo "▼・ᴗ・▼"
|
||||||
echo "%"
|
echo "%"
|
||||||
done >> tetofortunes
|
done >> fortunes/tetosotd/tetofortunes
|
||||||
if [ "$START" -ge "$MAX" ]; then
|
if [ "$START" -ge "$MAX" ]; then
|
||||||
echo "Reached max results. Stopping."
|
echo "Reached max results. Stopping."
|
||||||
break
|
break
|
||||||
@@ -57,5 +57,5 @@ while true; do
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# create the fortune database from tetofortunes
|
# create the fortune database from tetofortunes
|
||||||
rm tetofortunes.dat # delete the old database if it extists.
|
rm fortunes/tetofortunes.dat # delete the old database if it extists.
|
||||||
strfile -c % tetofortunes tetofortunes.dat
|
strfile -c % fortunes/tetofortunes fortunes/tetofortunes.dat
|
||||||
|
|||||||
Reference in New Issue
Block a user