Skip to content

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

Merged
merged 1 commit into from
Feb 10, 2024

Conversation

donald
Copy link
Contributor

@donald donald commented Feb 10, 2024

Some .have_archived_on_tape plain files have appeared in /package/pkg so this script fails when it tries to change the current working directory into a path which is not a directory.

Check that the path is a directory before changing into it. This can be done with the existing check, because a check for a subdirectory implies that the parent is a directory, too. However, we need to use absolute pathnames, so modify the wildcard to produce absolute pathnames.

Some .have_archived_on_tape plain files have appeared in /package/pkg so
this script fails when it tries to change the current working directory
into a path which is not a directory.

Check that the path is a directory before changing into it. This can be
done with the existing check, because a check for a subdirectory implies
that the parent is a directory, too. However, we need to use absolute
pathnames, so modify the wildcard to produce absolute pathnames.
@donald donald merged commit cf60eaf into master Feb 10, 2024
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant