From 1c612cf65439901200f89c0123dbdf9dcae5e539 Mon Sep 17 00:00:00 2001 From: rami3l Date: Fri, 22 Mar 2024 17:32:11 +0800 Subject: [PATCH] fix(ci): fix file paths in CI-generated `*.sha256` files on *nix --- ci/prepare-deploy.bash | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/prepare-deploy.bash b/ci/prepare-deploy.bash index 137d62858d..494f8ea38e 100644 --- a/ci/prepare-deploy.bash +++ b/ci/prepare-deploy.bash @@ -6,11 +6,13 @@ set -u -e cp target/"$TARGET"/release/rustup-init target/"$TARGET"/release/rustup-setup # Generate hashes +pushd target/"$TARGET"/release/ if [ "$(uname -s)" = "Darwin" ]; then - find target/"$TARGET"/release/ -maxdepth 1 -type f -exec sh -c 'fn="$1"; shasum -a 256 -b "$fn" > "$fn".sha256' sh {} \; + find . -maxdepth 1 -type f -exec sh -c 'fn="$1"; shasum -a 256 -b "$fn" > "$fn".sha256' sh {} \; else - find target/"$TARGET"/release/ -maxdepth 1 -type f -exec sh -c 'fn="$1"; sha256sum -b "$fn" > "$fn".sha256' sh {} \; + find . -maxdepth 1 -type f -exec sh -c 'fn="$1"; sha256sum -b "$fn" > "$fn".sha256' sh {} \; fi +popd # The directory for deployment artifacts dest="deploy"