From 9e64d1bd10f0cd68c8519954bda14ce784805a7a Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 10 May 2015 19:00:25 +0200 Subject: [PATCH] fix(deployment): limit tar.gz to executable Previously it could re-pack tar-files and mess everything up. [skip ci] --- src/bash/linux-deployment-to-downloads.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bash/linux-deployment-to-downloads.bash b/src/bash/linux-deployment-to-downloads.bash index 6f68085d4c..78cfed1618 100755 --- a/src/bash/linux-deployment-to-downloads.bash +++ b/src/bash/linux-deployment-to-downloads.bash @@ -11,7 +11,7 @@ base_dir=${5:?Is the root path of the download directory, e.g. /var/www/download dest_dir=${base_dir}/google.rs/${program_type}/${version}/${os_name} mkdir -p ${dest_dir} || exit $? cd ${dest_dir} && tar -xzvf ${tar_file} || exit $? -for file in *; do +for file in `find . -executable -type f`; do program_tar_file=${file}.tar.gz tar -czf ${program_tar_file} $file && rm $file && echo "Created ${program_tar_file}" done