Skip to content

Commit

Permalink
fix(script): Fixed #2
Browse files Browse the repository at this point in the history
  • Loading branch information
muink committed Dec 29, 2023
1 parent 0e9028d commit 38574ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion root/etc/homeproxy/scripts/update_resources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 38574ee

Please sign in to comment.