Only check checksums if there is a source file
Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
a864a50bc6
commit
687f04ab46
1 changed files with 2 additions and 0 deletions
|
@ -547,6 +547,8 @@ generate_checksums() {
|
|||
}
|
||||
|
||||
check_checksums() {
|
||||
[ ${#source[@]} -eq 0 ] && return 0
|
||||
|
||||
if [ ! $(type -p openssl) ]; then
|
||||
error "$(gettext "Cannot find openssl.")"
|
||||
exit 1 # $E_MISSING_PROGRAM
|
||||
|
|
Loading…
Add table
Reference in a new issue