mirror of
https://github.com/DerTyp7/better-teamspeak-theme.git
synced 2025-10-28 12:22:13 +01:00
25 lines
534 B
Bash
25 lines
534 B
Bash
#!/bin/bsh
|
|
|
|
# Extract lines between the comment block
|
|
sed -n '/# START AUTOGENERATED/,/# END AUTOGENERATED/p' .gitignore > temp.txt
|
|
|
|
# Remove the comment lines
|
|
sed -i '/# START AUTOGENERATED/d' temp.txt
|
|
sed -i '/# END AUTOGENERATED/d' temp.txt
|
|
|
|
# Read each line in the temp file
|
|
while IFS= read -r line
|
|
do
|
|
# Delete the file
|
|
rm -f "$line"
|
|
done < temp.txt
|
|
|
|
# Remove the temp file
|
|
rm -f temp.txt
|
|
|
|
# Remove the comment block from .gitignore
|
|
sed -i '/# START AUTOGENERATED/,/# END AUTOGENERATED/d' .gitignore
|
|
|
|
# Exit the script
|
|
exit 0
|