mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-26 09:13:35 +05:00
Compare commits
3 Commits
16d1c1810a
...
e73959f061
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e73959f061 | ||
|
|
d33ac6b15a | ||
|
|
6a766f7882 |
@@ -358,6 +358,7 @@ function get_usb_id() {
|
||||
unset mcu_list
|
||||
sleep 1
|
||||
mcus=$(find /dev/serial/by-id/* 2>/dev/null)
|
||||
mcus+=" $(find /dev/serial/by-path/* 2>/dev/null)"
|
||||
|
||||
for mcu in ${mcus}; do
|
||||
mcu_list+=("${mcu}")
|
||||
|
||||
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user