squash: belt & braces

This commit is contained in:
MilhouseVH 2017-11-25 03:02:35 +00:00
parent dc61719ae4
commit 54c3be9f91

View File

@ -21,7 +21,7 @@
. config/options $1
_get_file_already_downloaded() {
[ ! -f $PACKAGE ] && return 1
[ ! -f $PACKAGE -o ! -f $STAMP_URL -o ! -f $STAMP_SHA ] && return 1
[ -n "${PKG_SHA256}" -a "$(cat $STAMP_SHA 2>/dev/null)" != "${PKG_SHA256}" ] && return 1
return 0
}