From 6365bb5aa221e699607c2103be896720687d638c Mon Sep 17 00:00:00 2001 From: ipitio <21136719+ipitio@users.noreply.github.com> Date: Mon, 28 Oct 2024 21:17:22 -0400 Subject: [PATCH] head 100 --- src/bkg.sh | 6 +++--- src/lib/version.sh | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bkg.sh b/src/bkg.sh index b7c3d1a8cc0..ad92e70dff9 100644 --- a/src/bkg.sh +++ b/src/bkg.sh @@ -114,18 +114,18 @@ main() { awk -F'|' '{print $2}' /dev/null | head -n1000 | env_parallel --lb save_owner parallel "sed -i '\,^{}$,d' $BKG_OWNERS" <"$connections" set_BKG BKG_DIFF "$db_size_curr" rm -f "$connections" - [ "$(wc -l <"$BKG_OWNERS")" -gt 32 ] || seq 1 2 | env_parallel --lb --halt soon,fail=1 page_owner else save_owner "$GITHUB_OWNER" fi diff --git a/src/lib/version.sh b/src/lib/version.sh index 131de95800f..fb69e0e9651 100644 --- a/src/lib/version.sh +++ b/src/lib/version.sh @@ -52,6 +52,7 @@ save_version() { version_dl_week=$(_jq "$1" '.downloads_week') version_dl_day=$(_jq "$1" '.downloads_day') version_tags=$(_jq "$1" '.tags') + [[ "$version_id" =~ ^[0-9]+$ ]] || version_id=\"$version_id\" [[ "$version_size" =~ ^[0-9]+$ ]] || version_size=-1 [[ "$version_dl" =~ ^[0-9]+$ ]] || version_dl=-1 [[ "$version_dl_month" =~ ^[0-9]+$ ]] || version_dl_month=-1