fix: pull mainsail.cfg from correct location (#272)

This commit is contained in:
Thomas Lété
2022-12-07 17:34:01 +01:00
committed by GitHub
parent e9c23ca93e
commit 2c9f5bed60

View File

@@ -126,7 +126,7 @@ function install_mainsail_macros() {
function download_mainsail_macros() {
local ms_cfg path configs regex
ms_cfg="https://raw.githubusercontent.com/mainsail-crew/MainsailOS/master/src/modules/mainsail/filesystem/home/pi/klipper_config/mainsail.cfg"
ms_cfg="https://raw.githubusercontent.com/mainsail-crew/mainsail-config/master/mainsail.cfg"
regex="\/home\/${USER}\/([A-Za-z0-9_]+)\/config\/printer\.cfg"
configs=$(find "${HOME}" -maxdepth 3 -regextype posix-extended -regex "${regex}" | sort)