Skip to content

Commit

Permalink
Merge pull request #272 from mariux64/update-archve-build.sh
Browse files Browse the repository at this point in the history
archive-builds.sh: Ignore non-directories in /package/pkg
  • Loading branch information
donald authored Feb 10, 2024
2 parents 8064543 + 3ebcf62 commit cf60eaf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tools/archive-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,11 @@ if [ "$(hostname -s)" != "ellie" ]; then
exit 1
fi

cd /package/pkg
umask 022

for d in *; do
cd /package/pkg/$d
if [[ -d build && $(stat --format=%U .) == "bin" ]]; then
for d in /package/pkg/*; do
if [[ -d $d/build && $(stat --format=%U $d) == "bin" ]]; then
cd $d
echo "archive $d/build"
tar --create --zstd --file build.tar.zstd build/ && rm -rf build
fi
Expand Down

0 comments on commit cf60eaf

Please sign in to comment.