diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3922968 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Shell Scripts LF enforcement +*.sh text eol=lf diff --git a/ctf_setup.sh b/ctf_setup.sh index bb09ed4..5ad6a11 100644 --- a/ctf_setup.sh +++ b/ctf_setup.sh @@ -5,6 +5,8 @@ # set -euo pipefail +perl -pi -e 's/\r\n/\n/g' "$0" + exec > >(tee /var/log/ctf_setup.log) 2>&1 DONE_MARKER="/var/lib/cloud/instance/ctf-setup.done" @@ -60,4 +62,4 @@ uv cache clean touch "$DONE_MARKER" touch "$LEGACY_DONE_MARKER" touch "$PROJECT_DONE_MARKER" -echo "CTF environment setup complete!" +echo "CTF environment setup complete!" \ No newline at end of file