shellnotes/util/.hidden/.clearlogs.sh
Dimitris Marakomihelakis c9df858313 optimize clearlogs
2023-08-20 20:39:35 +03:00

20 lines
No EOL
487 B
Bash

:<<'info'
shellnotes - .clearlogs.sh
(C) Dimitris Marakomihelakis
Released under the "All rights reserved" category. See the RIGHTS.txt file
in /docs/github/ for its full text.
info
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
}