This commit is contained in:
Egor Matveev 2022-02-06 23:11:21 +03:00
parent 0aef3aaeb1
commit 617eb43106

View File

@ -95,7 +95,12 @@ class BaseTester:
with open( with open(
join(self.path, file.filename), "wb" join(self.path, file.filename), "wb"
) as fs: ) as fs:
fs.write(get_bytes(file.fs_id).replace(b"\r\n", b"\n")) bts = get_bytes(file.fs_id)
if file.filename == 'checker.sh':
bts = bts.replace(b"\r\n", b"\r")
else:
bts = bts.replace(b"\r\n", b"\n")
fs.write(bts)
print("Files copied") print("Files copied")
for file in listdir(self.path): for file in listdir(self.path):
chmod(join(self.path, file), 0o777) chmod(join(self.path, file), 0o777)