mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
chore(osx-deployment): fix tar-handling
Previously it would fail as '*' was in fact not substituted by the subshell. Now I just take the brutal route, using find. [skip ci]
This commit is contained in:
@@ -8,6 +8,6 @@ tar_file=${tar_basename}.tar.gz
|
||||
dest_dir=build/$tar_basename
|
||||
mkdir -p $dest_dir || exit $?
|
||||
find -E gen -perm +0111 -type f -path "*/${rtype}/*" -not \( -name "*.*" -or -name "*script*" -or -regex ".*-[a-f0-9]{16}" \) | xargs -J % cp -v % $dest_dir || exit $?
|
||||
(cd $dest_dir && tar -czvf ${tar_file} "*") || exit $?
|
||||
(cd $dest_dir && tar -czvf ../${tar_file} `find . -perm +0111 -type f`) || exit $?
|
||||
rm -Rfv $dest_dir || exit $?
|
||||
echo Wrote build/$tar_file
|
||||
|
||||
Reference in New Issue
Block a user