refactor: sort after find
Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
@@ -187,7 +187,7 @@ function compare_klipperscreen_versions(){
|
||||
|
||||
function patch_klipperscreen_update_manager(){
|
||||
local moonraker_configs
|
||||
moonraker_configs=$(find "$(get_klipper_cfg_dir)" -type f -name "moonraker.conf")
|
||||
moonraker_configs=$(find "$(get_klipper_cfg_dir)" -type f -name "moonraker.conf" | sort)
|
||||
for conf in ${moonraker_configs}; do
|
||||
if ! grep -Eq "[update_manager KlipperScreen]" "${conf}"; then
|
||||
### add new line to conf if it doesn't end with one
|
||||
|
||||
Reference in New Issue
Block a user