Skip to content

Commit

Permalink
freebsd-pkg: Check if getting version list succeeds
Browse files Browse the repository at this point in the history
  • Loading branch information
taoky committed Oct 7, 2024
1 parent 7e7f11e commit 4d3d694
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions freebsd-pkg/sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ curl_init

echo "[INFO] getting version list..."
$CURL_WRAP -sSL $FBSD_PKG_UPSTREAM | grep -oP 'FreeBSD:[0-9]+:[a-z0-9]+' | grep -vP $FBSD_PKG_EXCLUDE | sort -t : -rnk 2 | uniq | tee $FBSD_PLATFORMS
if [[ ${PIPESTATUS[0]} -ne 0 ]]; then
echo "[FATAL] get version list from $FBSD_PKG_UPSTREAM failed."
return 1
fi

while read platform; do
for channel in latest quarterly; do
Expand Down

0 comments on commit 4d3d694

Please sign in to comment.