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]

Increase portability of setup.sh; abort on failure

Kilian Lieret2da662bb1785
diff --git a/setup.sh b/setup.sh
index 2778613b..b7658a11 100755
--- a/setup.sh
+++ b/setup.sh
@@ -1,4 +1,7 @@
-#!/bin/bash
+#!/usr/bin/env bash
+
+# bash strict mode
+set -euo pipefail
# Create docker image
echo "Setting up docker image for swe-agent..."