Skip to content

Commit 1c612cf

Browse files
committed
fix(ci): fix file paths in CI-generated *.sha256 files on *nix
1 parent 9c0971b commit 1c612cf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/prepare-deploy.bash

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ set -u -e
66
cp target/"$TARGET"/release/rustup-init target/"$TARGET"/release/rustup-setup
77

88
# Generate hashes
9+
pushd target/"$TARGET"/release/
910
if [ "$(uname -s)" = "Darwin" ]; then
10-
find target/"$TARGET"/release/ -maxdepth 1 -type f -exec sh -c 'fn="$1"; shasum -a 256 -b "$fn" > "$fn".sha256' sh {} \;
11+
find . -maxdepth 1 -type f -exec sh -c 'fn="$1"; shasum -a 256 -b "$fn" > "$fn".sha256' sh {} \;
1112
else
12-
find target/"$TARGET"/release/ -maxdepth 1 -type f -exec sh -c 'fn="$1"; sha256sum -b "$fn" > "$fn".sha256' sh {} \;
13+
find . -maxdepth 1 -type f -exec sh -c 'fn="$1"; sha256sum -b "$fn" > "$fn".sha256' sh {} \;
1314
fi
15+
popd
1416

1517
# The directory for deployment artifacts
1618
dest="deploy"

0 commit comments

Comments
 (0)