Compare commits

...

3 Commits

Author SHA1 Message Date
Nick Berardi
6ab7be6912 Merge 89a9d38d39 into d33ac6b15a 2024-08-03 20:52:43 +02:00
dw-0
d33ac6b15a fix: parse moonraker dependencies from system-dependencies.json (#492)
Signed-off-by: Dominik Willner <th33xitus@gmail.com>
2024-08-03 13:30:34 +02:00
Nick Berardi
89a9d38d39 trim klipper git clone to only latest history 2024-01-01 15:03:40 -05:00
2 changed files with 3 additions and 3 deletions

View File

@@ -264,7 +264,7 @@ function clone_klipper() {
status_msg "Cloning Klipper from ${repo} ..."
cd "${HOME}" || exit 1
if git clone "${repo}" "${KLIPPER_DIR}"; then
if git clone "${repo}" "${KLIPPER_DIR}" --depth 1; then
cd "${KLIPPER_DIR}" && git checkout "${branch}"
else
print_error "Cloning Klipper from\n ${repo}\n failed!"

View File

@@ -142,12 +142,12 @@ function moonraker_setup_dialog() {
function install_moonraker_dependencies() {
local packages log_name="Moonraker"
local install_script="${MOONRAKER_DIR}/scripts/install-moonraker.sh"
local package_json="${MOONRAKER_DIR}/scripts/system-dependencies.json"
### read PKGLIST from official install-script
status_msg "Reading dependencies..."
# shellcheck disable=SC2016
packages="$(grep "PKGLIST=" "${install_script}" | cut -d'"' -f2 | sed 's/\${PKGLIST}//g' | tr -d '\n')"
packages=$(cat $package_json | tr -d ' \n{}' | cut -d "]" -f1 | cut -d":" -f2 | tr -d '"[' | sed 's/,/ /g')
echo "${cyan}${packages}${white}" | tr '[:space:]' '\n'
read -r -a packages <<< "${packages}"