1
0
mirror of https://github.com/github/choosealicense.com synced 2024-06-09 12:47:49 +02:00

Remove meta data

This commit is contained in:
Dlurak 2024-01-02 21:16:14 +01:00
parent 5fcdf5ad7c
commit 1142def21b

View File

@ -4,5 +4,5 @@ mkdir _site/raw -p
for file in _licenses/*.txt; do
echo "$file"
cp "$file" "_site/raw/$(basename "$file" .txt)"
awk '/^---$/ {if (++count == 2) {p=1; next}} p' "$file" | tail -n +2 > "_site/raw/$(basename "$file" .txt)"
done