Skip to content

SWE-agent takes a GitHub issue and tries to automatically fix it, using your LM of choice. It can also be employed for offensive cybersecurity or competitive coding challenges. [NeurIPS 2024]

Fix: Submit doesn't work for flags with spaces

Kilian Lieretef4efe670823
diff --git a/config/commands/submit_ctf.sh b/config/commands/submit_ctf.sh
index 89605ffc..2191e642 100644
--- a/config/commands/submit_ctf.sh
+++ b/config/commands/submit_ctf.sh
@@ -12,7 +12,7 @@ submit() {
return
fi
- echo "<<SUBMISSION||"
- echo "$1"
+ echo -n "<<SUBMISSION||"
+ echo -n "$@"
echo "||SUBMISSION>>"
}
\ No newline at end of file