optimize clearlogs

This commit is contained in:
Dimitris Marakomihelakis 2023-08-20 20:39:35 +03:00
parent d77e78b776
commit c9df858313

View file

@ -9,7 +9,11 @@ function clearlogs() {
echo -n "Are you sure? " && read input
case $input in Y|Yes|yes|y|YES )
cd ~/.shellnotes/util/exec
chmod +x clearlogs
./clearlogs
cd ../../logs/sne
touch delete # In case directory is already empty
/bin/rm -f *
echo "[shellnotes] Logfiles cleared."
esac
cd $DIR