diff --git a/contrib/containers/guix/scripts/guix-check b/contrib/containers/guix/scripts/guix-check index e16891bc72a2e4..419445c163ec35 100755 --- a/contrib/containers/guix/scripts/guix-check +++ b/contrib/containers/guix/scripts/guix-check @@ -2,6 +2,9 @@ set -eo pipefail +# shellcheck source=libexec/prelude.bash +source "$(dirname "${BASH_SOURCE[0]}")/libexec/prelude.bash" + if [[ -n "${1}" ]]; then WORKSPACE_PATH="$1" else @@ -14,15 +17,14 @@ if [[ ! -d "$WORKSPACE_PATH" ]]; then fi cd "$WORKSPACE_PATH" -COMMIT_ID="$(git rev-parse --short=12 HEAD)" printf "\nBinaries:\n\n" ( \ -SRC_PATH_PREFIX="guix-build-${COMMIT_ID}/distsrc-" && \ +SRC_PATH_PREFIX="${VERSION_BASE}/distsrc-" && \ sha256sum ${SRC_PATH_PREFIX}*/src/dash{d,-cli,-tx,-wallet}{,.exe} && \ sha256sum ${SRC_PATH_PREFIX}*/src/qt/dash-qt{,.exe} && \ sha256sum ${SRC_PATH_PREFIX}*/src/test/test_dash{,.exe} \ ) | sort -k 2 printf "\nArchives:\n\n" -find "guix-build-${COMMIT_ID}/output" -type f | grep -v SHA256 | xargs sha256sum | sort -k 2 +find "${OUTDIR_BASE}" -type f | grep -v SHA256 | xargs sha256sum | sort -k 2