mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-12-25 21:17:12 +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
|