Jump to content

[script] telegram cache cleaner


dadal75

Recommended Posts

invoco @Gengik84[/mention] che è il mago degli script....

 

si può migliorare come grafica, leggibilità ecc...?

 

 

 

in allegato lo script originale e qui sotto il codice

 

 

[code][i]
[/i]#!/bin/bash
set -e

clear 
echo "########################################"
echo "########################################"
echo "########################################"
echo
echo
echo "Clear Telegram Cache --Desktop version--"
echo
echo


echo Procedo alla rimozione della cartella /postbox/media di Telegram.
echo
echo
echo La cartellla /Telegram Download o la cartella Download non verranno coinvolte nel processo.
echo "########################################"
echo "########################################"
echo "########################################"
echo "########################################"
echo
echo

telegramfolder=$(find ~/Library/Group\ Containers -type d -maxdepth 1 -name "*.keepcoder.Telegram")
telegramaccountfolder=$(find "${telegramfolder}" -type d -maxdepth 1 -name "account-*")
rm -r "${telegramaccountfolder}/postbox/media"

echo
echo
echo "########################################"
echo "########################################"
echo "########################################"
echo
echo

Echo rimozione effettuata con successo.
echo
echo

echo "########################################"
echo "########################################"
echo "########################################"
echo "########################################"

[/code]

clear_telegram_cache.sh.zip

Link to comment
Share on other sites

  • Support Team

Tranquillo, non ti è comparso Darth Vader per terminarti... solo che Gengik non usa telegram, quindi dovrai trovare un criceto per fare test con il tuo script

 

Darth-vader-star-wars-movie-hd-wallpaperhttps://leganerd.com/wp-content/uploads ... 68x480.jpg">https://leganerd.com/wp-content/uploads/2017/01/Darth-vader-star-wars-movie-hd-wallpaper-1920x1200-768x480.jpg' alt='LINK_TEXT>'>

Link to comment
Share on other sites

Ci mancherebbe, io sono il tester x eccellenza! Il codice funziona ( cioè il comando specifico di rimozione della cartella) ma il resto l’ho scritto io e fa un po’ pena! Gengik compila da dio invece!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.