refactor: substitute ~/klipper_logs

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-05-14 18:08:08 +02:00
parent 4ecdf5505e
commit 2bcb441287
7 changed files with 12 additions and 12 deletions

View File

@@ -315,7 +315,7 @@ function remove_telegram_bot_env() {
function remove_telegram_bot_logs() {
local files
files=$(find "${KLIPPER_LOGS}" -maxdepth 1 -regextype posix-extended -regex "${HOME}/klipper_logs/telegram(-[0-9a-zA-Z]+)?\.log(.*)?" | sort)
files=$(find "${KLIPPER_LOGS}" -maxdepth 1 -regextype posix-extended -regex "${KLIPPER_LOGS}/telegram(-[0-9a-zA-Z]+)?\.log(.*)?" | sort)
if [[ -n ${files} ]]; then
for file in ${files}; do