refactor!: update KIAUH for recent moonraker changes #245

Merged
dw-0 merged 38 commits from adapt-moonraker-changes into master 2022-10-20 11:20:34 +02:00
2 changed files with 8 additions and 8 deletions
Showing only changes of commit cf05354c7b - Show all commits

View File

@@ -409,8 +409,8 @@ function remove_klipper_systemd() {
}
function remove_klipper_env_file() {
local files regex="klipper.env"
files=$(find "${PRINTER_DATA}" -maxdepth 2 -regextype posix-extended -regex "${PRINTER_DATA}/.*/${regex}" 2> /dev/null | sort)
local files name="klipper.env"
files=$(find "${PRINTER_DATA}" -name "${name}" 2> /dev/null | sort)
if [[ -n ${files} ]]; then
for file in ${files}; do
@@ -422,8 +422,8 @@ function remove_klipper_env_file() {
}
function remove_klipper_logs() {
local files regex="klippy.log(.*)?"
files=$(find "${PRINTER_DATA}" -maxdepth 2 -regextype posix-extended -regex "${PRINTER_DATA}/.*/${regex}" 2> /dev/null | sort)
local files name="klippy.log*"
files=$(find "${PRINTER_DATA}" -name "${name}" 2> /dev/null | sort)
if [[ -n ${files} ]]; then
for file in ${files}; do

View File

@@ -465,8 +465,8 @@ function remove_moonraker_systemd() {
}
function remove_moonraker_env_file() {
local files regex="moonraker.env"
files=$(find "${PRINTER_DATA}" -maxdepth 2 -regextype posix-extended -regex "${PRINTER_DATA}/.*/${regex}" 2> /dev/null | sort)
local files name="moonraker.env"
files=$(find "${PRINTER_DATA}" -name "${name}" 2> /dev/null | sort)
if [[ -n ${files} ]]; then
for file in ${files}; do
@@ -478,8 +478,8 @@ function remove_moonraker_env_file() {
}
function remove_moonraker_logs() {
local files regex="moonraker.log(.*)?"
files=$(find "${PRINTER_DATA}" -maxdepth 2 -regextype posix-extended -regex "${PRINTER_DATA}/.*/${regex}" 2> /dev/null | sort)
local files name="moonraker.log*"
files=$(find "${PRINTER_DATA}" -name "${name}" 2> /dev/null | sort)
if [[ -n ${files} ]]; then
for file in ${files}; do