Skip to content

fix(bt): add convertion of the startscript to LF #4008

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lgsm/data/almalinux-8.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,compat-libstdc++-33.i686,glibc.i686
bmdm,ncurses-libs.i686
bo
bs
bt,libicu
bt,libicu,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/centos-7.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,compat-libstdc++-33.i686,glibc.i686
bmdm,ncurses-libs.i686
bo
bs
bt,libicu
bt,libicu,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/centos-8.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,compat-libstdc++-33.i686,glibc.i686
bmdm,ncurses-libs.i686
bo
bs
bt,libicu
bt,libicu,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/debian-10.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,libncurses5:i386,libstdc++5:i386
bmdm,libncurses5:i386
bo
bs
bt,libicu-dev
bt,libicu-dev,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/debian-11.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,libncurses5:i386,libstdc++5:i386
bmdm,libncurses5:i386
bo
bs
bt,libicu-dev
bt,libicu-dev,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/debian-9.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,libncurses5:i386,libstdc++5:i386
bmdm,libncurses5:i386
bo
bs
bt,libicu-dev
bt,libicu-dev,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/rocky-8.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,compat-libstdc++-33.i686,glibc.i686
bmdm,ncurses-libs.i686
bo
bs
bt,libicu
bt,libicu,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-16.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ bfv,libncurses5:i386,libstdc++5:i386
bmdm,libncurses5:i386
bo
bs
bt,libicu-dev
bt,libicu-dev,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-18.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,libncurses5:i386,libstdc++5:i386
bmdm,libncurses5:i386
bo
bs
bt,libicu-dev
bt,libicu-dev,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-20.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,libncurses5:i386,libstdc++5:i386
bmdm,libncurses5:i386
bo
bs
bt,libicu-dev
bt,libicu-dev,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-21.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,libncurses5:i386,libstdc++5:i386
bmdm,libncurses5:i386
bo
bs
bt,libicu-dev
bt,libicu-dev,dos2unix
bt1944
cc
cd
Expand Down
2 changes: 1 addition & 1 deletion lgsm/data/ubuntu-22.04.csv
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bfv,libncurses5:i386,libstdc++5:i386
bmdm,libncurses5:i386
bo
bs
bt,libicu-dev
bt,libicu-dev,dos2unix
bt1944
cc
cmw
Expand Down
8 changes: 8 additions & 0 deletions lgsm/functions/fix_bt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@ if [ ! -d "${XDG_DATA_HOME:="${HOME}/.local/share"}/Daedalic Entertainment GmbH/
mkdir -p "${XDG_DATA_HOME:="${HOME}/.local/share"}/Daedalic Entertainment GmbH/Barotrauma"
fn_fix_msg_end
fi

# check if startscript is with windows line endings and reformat it
if file -b "${serverfiles}${executable:1}" | grep -q CRLF; then
fixname="Convert ${executable:2} to unix file format"
fn_fix_msg_start
dos2unix -q "${serverfiles}${executable:1}"
fn_fix_msg_end
fi