Option to force TLD updates.
This commit is contained in:
parent
55ccd14dfe
commit
37303cc5b5
2
build.sh
2
build.sh
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue