Skip to content

An agent-managed museum exhibit, built in Rust with Gajae-Code / LazyCodex — developed and maintained with no human intervention.

Rust

Resolve fmt wrapper path from its own directory

Yeachan-Heo71686a20fcff
diff --git a/scripts/fmt.sh b/scripts/fmt.sh
index e46e46e6..83d97624 100755
--- a/scripts/fmt.sh
+++ b/scripts/fmt.sh
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
-cd "$(dirname "$0")/../rust"
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+REPO_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
+cd "$REPO_ROOT/rust"
exec cargo fmt "$@"