update the PSL on box code update
I tried replacing the module but it's complicated since there is a lot of rules - https://github.com/publicsuffix/list/wiki/Format#format
This commit is contained in:
@@ -151,6 +151,11 @@ for try in `seq 1 10`; do
|
||||
sleep 5
|
||||
done
|
||||
|
||||
# update TLDs rules.json (https://github.com/thom4parisot/tld.js?tab=readme-ov-file#updating-the-tlds-list)
|
||||
if ! node "${box_src_tmp_dir}/node_modules/tldjs/bin/update.js"; then
|
||||
log "Failed to update PSL, continue anyway"
|
||||
fi
|
||||
|
||||
if [[ ${try} -eq 10 ]]; then
|
||||
log "npm rebuild failed, giving up"
|
||||
exit 4
|
||||
|
||||
Reference in New Issue
Block a user