mirror of
https://codeberg.org/KeybadeBlox/JSRF-Decompilation.git
synced 2026-05-22 17:37:20 +03:00
Support DOS line endings in delink.sh
DOS line endings in objects.csv, as one might encounter when cloning on Windows, would break the delinking script by adding an extra \r onto every line. The extra carriage return character is now removed.
This commit is contained in:
parent
20fecdd5fb
commit
9b9a736d4c
1 changed files with 3 additions and 1 deletions
|
|
@ -21,7 +21,9 @@ main() {
|
|||
|
||||
printf '=== Delinking object files into ../decompile/target/ ===\n'
|
||||
|
||||
while IFS= read -r line; do # Read objects.csv line by line
|
||||
# Read objects.csv line by line (with EOL handling for Windows people)
|
||||
CR=$(printf '\r')
|
||||
while IFS=$CR read -r line; do
|
||||
# Split columns (col 1 in $1, col 2 in $2, etc.)
|
||||
set -f; IFS_PREV=$IFS; IFS=,
|
||||
set -- $line
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue