update_hash_cache.sh: avoid useless use of cat
This commit is contained in:
parent
2aa48601af
commit
8fff9cee19
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ update_hash_cache() {
|
||||||
local distfile curfile
|
local distfile curfile
|
||||||
mkdir -p "$cache"
|
mkdir -p "$cache"
|
||||||
find "$XBPS_SRCDISTDIR" -type f | grep -v by_sha256 | while read -r distfile; do
|
find "$XBPS_SRCDISTDIR" -type f | grep -v by_sha256 | while read -r distfile; do
|
||||||
cksum=$(cat "$distfile" | sha256sum | cut -d " " -f 1)
|
cksum=$($XBPS_DIGEST_CMD "$distfile")
|
||||||
curfile="${distfile##*/}"
|
curfile="${distfile##*/}"
|
||||||
ln -vf "$distfile" "${cache}/${cksum}_${curfile}"
|
ln -vf "$distfile" "${cache}/${cksum}_${curfile}"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue