optimize clearlogs
This commit is contained in:
parent
d77e78b776
commit
c9df858313
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue