From df5886d7d7445eca5d084a00a565be62ea9c47eb Mon Sep 17 00:00:00 2001 From: maxice8 Date: Sat, 13 Apr 2019 15:09:54 -0300 Subject: [PATCH] vsed.sh: use XBPS_DIGEST_CMD instead of sha256sum --- common/environment/setup/vsed.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/environment/setup/vsed.sh b/common/environment/setup/vsed.sh index e5b66990bd4..3ad579783e3 100644 --- a/common/environment/setup/vsed.sh +++ b/common/environment/setup/vsed.sh @@ -46,14 +46,14 @@ vsed() { for rx in "${regexes[@]}"; do for f in "${files[@]}"; do - shasums="$(sha256sum "$f" 2>/dev/null | awk '{print $1}')" + shasums="$($XBPS_DIGEST_CMD "$f")" sed -i "$f" -e "$rx" || { msg_red "$pkgver: vsed: sed call failed with regex \"$rx\" on file \"$f\"\n" return 1 } - sha256sum="$(sha256sum "$f" 2>/dev/null)" + sha256sum="$($XBPS_DIGEST_CMD "$f")" if [ "$shasums" = "${sha256sum%% *}" ]; then msg_warn "$pkgver: vsed: regex \"$rx\" didn't change file \"$f\"\n"