all: make update_tests.sh scripts location-independent
Co-Authored-By: sketch <hello@sketch.dev>
diff --git a/dockerimg/update_tests.sh b/dockerimg/update_tests.sh
index 5a42f7b..7127f3b 100755
--- a/dockerimg/update_tests.sh
+++ b/dockerimg/update_tests.sh
@@ -3,9 +3,8 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
CURRENT_DIR=$(pwd)
-if [ "$SCRIPT_DIR" != "$CURRENT_DIR" ]; then
- echo "Error: This script must be run from its own directory: $SCRIPT_DIR" >&2
- exit 1
-fi
+cd "$SCRIPT_DIR"
go test -httprecord ".*" -rewritewant
+
+cd "$CURRENT_DIR"