Skip to content

Commit

Permalink
Removes useless badge
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperancinha committed Sep 14, 2024
1 parent dfa4f20 commit 155d6e3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions one-offs/badges/elmuxRemover.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#!/usr/bin/env bash
f="Readme.md"
cd ../../..
for item in *; do
if [[ -d "$item" ]] && [[ "$item" != ".git" ]] && [[ "$item" != "target" ]]; then
cd "$item" || exit
echo "----------------- Removing Badge on project $item -----------------"
if [ -f Readme.md ]; then
sed -E "s/\[!\[Twitter URL](.*)//g" "$f" > "$f""01"
mv "$f""01" "$f"
fi
find . -name "Readme.md" | while IFS= read -r readme; do
sed -E "s/\[!\[Twitter URL](.*)//g" "$readme" > "$readme""01"
mv "$readme""01" "$readme"
done
cd ..
fi
done
Expand Down

0 comments on commit 155d6e3

Please sign in to comment.