Skip to content

Commit

Permalink
Check for file existence in walk_dir.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
smoelius committed Jan 23, 2025
1 parent eba5c5b commit e5627e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/walk_dir.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ DIR="$PWD"

find . -name build.rs |
while read X; do
# smoelius: A previous iteration of this loop could have caused the file to go away.
if [[ ! -f "$X" ]]; then
continue
fi

Y="$(dirname "$X")"

pushd "$Y"
Expand Down

0 comments on commit e5627e4

Please sign in to comment.