mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
add newline at end of file where it's lacking
.editorconfig already enforces it but it's getting changed piecemeal in every commit. just get it done with. the script: ``` find . -type f -not -path "./.git/*" -not -path "./.vs/*" | while read -r file; do isFile=$(file -0 "$file" | cut -d $'\0' -f2) case "$isFile" in (*text*) echo "$file is text" if [[ $(tail -c 1 "$file" | wc -l) -ne 1 ]]; then echo "" >> "$file" fi ;; (*) echo "file isn't text" ;; esac done ```
This commit is contained in:
committed by
majcosta
parent
1d58bda82d
commit
86ad401186
@@ -6,4 +6,4 @@ WEAPON_DROPS gEnemyWeaponDrops[MAX_DROP_ITEMS];
|
||||
AMMO_DROPS gEnemyAmmoDrops[MAX_DROP_ITEMS];
|
||||
EXPLOSIVE_DROPS gEnemyExplosiveDrops[MAX_DROP_ITEMS];
|
||||
ARMOUR_DROPS gEnemyArmourDrops[MAX_DROP_ITEMS];
|
||||
MISC_DROPS gEnemyMiscDrops[MAX_DROP_ITEMS];
|
||||
MISC_DROPS gEnemyMiscDrops[MAX_DROP_ITEMS];
|
||||
|
||||
Reference in New Issue
Block a user