From cd1b1b722bd49936a82a6ac0e49863bb15e3f533 Mon Sep 17 00:00:00 2001 From: dmarakom6 Date: Sun, 18 Apr 2021 13:19:08 +0300 Subject: [PATCH] clear logs from executable clearlogs now can be run from util/exec/. --- install.sh | 2 +- util/.hidden/.clearlogs.sh | 6 ++---- util/exec/clearlogs | Bin 0 -> 17768 bytes 3 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 util/exec/clearlogs 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 0000000000000000000000000000000000000000..b9f9dec82d94c60bbcc2b4e5d58c05f17e099047 GIT binary patch literal 17768 zcmeHPeQ;FO6~CKJAR=x80!DCT#g73oYXSk|2W2-T@KOV$Bq&w%x!HY5RyVtG_pKz1 zS}5w6fz;HQR;Q&??2Mz1?G&fAwVkO3@pGz<)YhSO+M=V=q*aUYi&}8|JNMo5^7iFz zhdTYM-OFswJ->U-x#yjC-+k}CcMo4{XNJtCc)c zjwiWKzeW{LHw~hVN>Kh4!mYPO>A7jMl4nYNQ0aKbjD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