clear logs from executable

clearlogs now can be run from util/exec/.
This commit is contained in:
dmarakom6 2021-04-18 13:19:08 +03:00
parent c33d0a675c
commit cd1b1b722b
3 changed files with 3 additions and 5 deletions

View file

@ -39,7 +39,7 @@ else
sudo apt install python3-pip
pip install pathlib
sudo apt update
sudo chmod a+rwx ~/.shellnotes/util/exec/*
sudo chmod a+x ~/.shellnotes/util/exec/*
sudo chmod +x ~/.shellnotes/.shellnotes.sh
echo "$VER_TO_INSTALL" > ~/.shellnotes/ver/.shellnotes_version

View file

@ -9,10 +9,8 @@ function clearlogs() {
dir="$(pwd)"
echo -n "Are you sure? " && read input
case $input in Y|Yes|yes|y|YES )
cd ~/.shellnotes/logs
g++ .clearlogs.cpp -o clearlogs
~/.shellnotes/logs/clearlogs
rm -f clearlogs
cd ~/.shellnotes/util/exec
./clearlogs
echo "[shellnotes] Logfiles cleared."
esac
cd $dir

BIN
util/exec/clearlogs Normal file

Binary file not shown.