mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-12-21 07:16:52 +01:00
12 lines
318 B
Plaintext
12 lines
318 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
CARDSFOLDER="../res/cardsfolder/"
|
||
|
|
||
|
for d in `ls -1 "$CARDSFOLDER"`; do
|
||
|
for f in `ls -1 "$CARDSFOLDER/$d"`; do
|
||
|
FILE="$CARDSFOLDER/$d/$f";
|
||
|
dos2unix "$FILE";
|
||
|
[[ -f "$FILE" && $(tail -c1 "$FILE") ]] && echo '' >> "$FILE" && echo "Appended trailing newline to $FILE";
|
||
|
done
|
||
|
done
|