Option to force TLD updates.

This commit is contained in:
hackademix 2018-10-06 02:47:31 +02:00
parent 55ccd14dfe
commit 37303cc5b5
1 changed files with 3 additions and 3 deletions

View File

@ -46,7 +46,7 @@ XPI="$XPI_DIR/noscript-$VER"
LIB="$SRC/lib" LIB="$SRC/lib"
TLD="$BASE/TLD" TLD="$BASE/TLD"
if ! [ $(date -r "$LIB/tld.js" +'%Y%m%d') -ge $(date +'%Y%m%d') ] && "$TLD/generate.sh" "$LIB/tld.js"; then if ! [ $(date -r "$LIB/tld.js" +'%Y%m%d') -ge $(date +'%Y%m%d') -a "$1" != "tld" ] && "$TLD/generate.sh" "$LIB/tld.js"; then
cp -u "$TLD/tld.js" "$LIB" cp -u "$TLD/tld.js" "$LIB"
fi fi