update tetosong and tetofortunes
added the ability to update updated the tetofortunes files
This commit is contained in:
24
tetosong
24
tetosong
@@ -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..."
|
||||
|
||||
Reference in New Issue
Block a user