From 871fab48e6dfaf210d467c74b07e98fafc45c2a9 Mon Sep 17 00:00:00 2001
From: Bo-Chun Louis Chen <louistw@uab.edu>
Date: Thu, 18 May 2023 14:50:08 -0500
Subject: [PATCH] Replace CRLF(Windows) with LF(Linux)

---
 template/script.sh.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/template/script.sh.erb b/template/script.sh.erb
index 961fdf6..22b7125 100755
--- a/template/script.sh.erb
+++ b/template/script.sh.erb
@@ -31,7 +31,7 @@ module load <%= context.cuda_toolkit %>
 # Load the required environment
 module load <%= context.version %>
 
-<%= context.custom_environment %>
+<%= context.custom_environment.gsub(/\r\n?/, "\n") %>
 # Launch MATLAB
 module list
 set -x
-- 
GitLab