kiss: only run sh256 if we have elements

This commit is contained in:
Dylan Araps 2021-07-20 21:34:13 +03:00
parent ab9c0841ff
commit b48a89c7fa
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

6
kiss
View File

@ -806,7 +806,8 @@ pkg_etcsums() {
set -- "$pkg_dir/$repo_name/$etc" "$@" set -- "$pkg_dir/$repo_name/$etc" "$@"
esac done < manifest esac done < manifest
_sh256 "$@" > etcsums # Only run _sh256 if we have elements.
for f do _sh256 "$@" > etcsums; return 0; done
} }
pkg_tar() { pkg_tar() {
@ -1019,7 +1020,8 @@ pkg_checksums() {
esac esac
done < "$repo_dir/sources" done < "$repo_dir/sources"
_sh256 "$@" # Only run _sh256 if we have elements.
for f do _sh256 "$@"; return 0; done
} }
pkg_verify() { pkg_verify() {