diff --git a/install.sh b/install.sh index 955c449..b880c63 100644 --- a/install.sh +++ b/install.sh @@ -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 diff --git a/util/.hidden/.clearlogs.sh b/util/.hidden/.clearlogs.sh index ab4e51b..4c1a528 100644 --- a/util/.hidden/.clearlogs.sh +++ b/util/.hidden/.clearlogs.sh @@ -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 diff --git a/util/exec/clearlogs b/util/exec/clearlogs new file mode 100644 index 0000000..b9f9dec Binary files /dev/null and b/util/exec/clearlogs differ