Skip to content

archive-builds.sh: Ignore non-directories in /package/pkg #272

Merged
merged 1 commit into from
Feb 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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