clear logs from executable
clearlogs now can be run from util/exec/.
This commit is contained in:
parent
c33d0a675c
commit
cd1b1b722b
3 changed files with 3 additions and 5 deletions
|
@ -39,7 +39,7 @@ else
|
||||||
sudo apt install python3-pip
|
sudo apt install python3-pip
|
||||||
pip install pathlib
|
pip install pathlib
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo chmod a+rwx ~/.shellnotes/util/exec/*
|
sudo chmod a+x ~/.shellnotes/util/exec/*
|
||||||
sudo chmod +x ~/.shellnotes/.shellnotes.sh
|
sudo chmod +x ~/.shellnotes/.shellnotes.sh
|
||||||
|
|
||||||
echo "$VER_TO_INSTALL" > ~/.shellnotes/ver/.shellnotes_version
|
echo "$VER_TO_INSTALL" > ~/.shellnotes/ver/.shellnotes_version
|
||||||
|
|
|
@ -9,10 +9,8 @@ function clearlogs() {
|
||||||
dir="$(pwd)"
|
dir="$(pwd)"
|
||||||
echo -n "Are you sure? " && read input
|
echo -n "Are you sure? " && read input
|
||||||
case $input in Y|Yes|yes|y|YES )
|
case $input in Y|Yes|yes|y|YES )
|
||||||
cd ~/.shellnotes/logs
|
cd ~/.shellnotes/util/exec
|
||||||
g++ .clearlogs.cpp -o clearlogs
|
./clearlogs
|
||||||
~/.shellnotes/logs/clearlogs
|
|
||||||
rm -f clearlogs
|
|
||||||
echo "[shellnotes] Logfiles cleared."
|
echo "[shellnotes] Logfiles cleared."
|
||||||
esac
|
esac
|
||||||
cd $dir
|
cd $dir
|
||||||
|
|
BIN
util/exec/clearlogs
Normal file
BIN
util/exec/clearlogs
Normal file
Binary file not shown.
Loading…
Reference in a new issue