Explorar o código

dev: automated commit - 2025-06-05 14:02:48

Mariano Z. hai 8 meses
pai
achega
33106ea4a6
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  1. 3 4
      dev

+ 3 - 4
dev

@@ -1,8 +1,10 @@
 #!/usr/bin/env bash
 # Simple dev tool launcher - builds if needed
-
 set -euo pipefail
 
+# Change to script's directory
+cd "$(dirname "${BASH_SOURCE[0]}")"
+
 # Colors
 GREEN='\033[0;32m'
 RED='\033[0;31m'
@@ -30,12 +32,9 @@ if [[ ! -f "$BINARY" ]] || [[ "main.go" -nt "$BINARY" ]]; then
         error "Go not installed. Install with: sudo pacman -S go"
         exit 1
     fi
-
     log "Building dev tool..."
     mkdir -p bin
-
     go mod tidy
-
     if go build -ldflags="-s -w" -o "$BINARY" main.go; then
         log "✅ Built: $BINARY"
     else