Skip to content

Commit

Permalink
*sigh*
Browse files Browse the repository at this point in the history
- still trying to delete these fkn files
  • Loading branch information
UriHerrera committed Dec 18, 2024
1 parent 684f991 commit b13d729
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions gh-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ files=(
"*.yml"
".directory"
".gitignore"
"*[Ll][Ii][Cc][Ee][Nn][Cc][Ee]*"
"*Makefile*"
"*[Nn][Oo][Tt][Ii][Cc][Ee]*.txt"
"*LICENSE*"
"*Notice*"
"*WHENCE*"
"lib/firmware/Apache-2"
"lib/firmware/Dockerfile"
Expand Down Expand Up @@ -56,16 +56,18 @@ directories=(
"lib/firmware/carl9170fw"
"lib/firmware/cirrus"
"lib/firmware/nvidia"
"lib/firmware/r128"
"lib/firmware/radeon"
)

echo "Removing files..."
for file in "${files[@]}"; do
find . -type f \( -name "${file}" -o -path "${file}" \) -exec rm -f {} +
find . -type f -name "$file" -exec rm -f {} \; 2>/dev/null
done

echo "Removing directories..."
for dir in "${directories[@]}"; do
rm -rf "$dir"
rm -rf "$dir" 2>/dev/null
done

echo "Cleanup complete."
Expand Down

0 comments on commit b13d729

Please sign in to comment.