From 19bfbfd0c8e6cbbc209dacef39abcf2e48065ef4 Mon Sep 17 00:00:00 2001 From: turuslan Date: Tue, 15 Mar 2022 07:05:46 +0300 Subject: [PATCH] fix: remove tmp prefix from tar path Signed-off-by: turuslan --- rust/scripts/package-release.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/rust/scripts/package-release.sh b/rust/scripts/package-release.sh index bf1d085f..17d86e46 100755 --- a/rust/scripts/package-release.sh +++ b/rust/scripts/package-release.sh @@ -24,13 +24,14 @@ main() { # copy assets into temporary directory # - find -L . -type f -name filcrypto.h -exec cp -- "{}" $__tmp_dir/ \; - find -L . -type f -name libfilcrypto.a -exec cp -- "{}" $__tmp_dir/ \; - find -L . -type f -name filcrypto.pc -exec cp -- "{}" $__tmp_dir/ \; + mkdir $__tmp_dir/filcrypto + find -L . -type f -name filcrypto.h -exec cp -- "{}" $__tmp_dir/filcrypto \; + find -L . -type f -name libfilcrypto.a -exec cp -- "{}" $__tmp_dir/filcrypto \; + find -L . -type f -name filcrypto.pc -exec cp -- "{}" $__tmp_dir/filcrypto \; # create gzipped tarball from contents of temporary directory # - tar -czf $__tarball_output_path $__tmp_dir/* + tar -czf $__tarball_output_path -C $__tmp_dir filcrypto (>&2 echo "[package-release/main] release file created: $__tarball_output_path") }