update tetosong and tetofortunes

added the ability to update

updated the tetofortunes files
This commit is contained in:
2026-04-23 12:10:17 -04:00
parent ad778c8f89
commit 621ffe4c6c
5 changed files with 125 additions and 1 deletions

View File

@@ -1,4 +1,28 @@
#!/usr/bin/bash
# argument handling
while [[ $# -gt 0 ]]; do
case $1 in
-u|--update)
echo "Updating tetosong..."
bash <(curl -s https://raw.githubusercontent.com/eric5949/tetosong/refs/heads/main/installer.sh)
shift
exit 0
;;
-h|--help)
echo "--- TETOSONG HELP ---"
echo ""
echo " -h | display this message"
echo " -u | update script and fortunes"
echo ""
shift
exit 0
;;
*)
break
;;
esac
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..."