From 5e5f0dcc662160a378387a91a0719407dde503c9 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Mon, 11 May 2015 06:32:30 +0200 Subject: [PATCH] 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] --- src/bash/osx-deploy.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bash/osx-deploy.bash b/src/bash/osx-deploy.bash index 9ed57141a5..e790db8c90 100755 --- a/src/bash/osx-deploy.bash +++ b/src/bash/osx-deploy.bash @@ -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