diff --git a/root/etc/homeproxy/scripts/update_resources.sh b/root/etc/homeproxy/scripts/update_resources.sh index 8604f5e9..7d19420e 100755 --- a/root/etc/homeproxy/scripts/update_resources.sh +++ b/root/etc/homeproxy/scripts/update_resources.sh @@ -85,7 +85,8 @@ check_clash_dashboard_update() { mv -f "$RUN_DIR/$dashtype.zip" "$RESOURCES_DIR/${dashrepo//\//_}.zip" touch "$RESOURCES_DIR/$dashtype.ver" - json_load_file "$RESOURCES_DIR/$dashtype.ver" || json_init + json_init + json_load_file "$RESOURCES_DIR/$dashtype.ver" json_select "$dashrepoid" 2>/dev/null || json_add_object "$dashrepoid" json_add_string repo "$dashrepo" json_add_string version "$dashdata_ver"