#!/bin/bash cd /home/will/lab/tower go build -o /tmp/controltower ./cmd/controltower 2>&1 if [ $? -eq 0 ]; then echo "Build successful!" rm -f /tmp/controltower else echo "Build failed!" exit 1 fi