From d7cd5ffb7f1530c0e388f180863048f468f46147 Mon Sep 17 00:00:00 2001 From: Cipher Vance Date: Sat, 22 Nov 2025 23:42:46 -0600 Subject: [PATCH] fix build script again --- scripts/build.sh | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/scripts/build.sh b/scripts/build.sh index 440fd31..2aefd2b 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -122,16 +122,6 @@ cleanup_container() { return 0 } -# Function to check if port is in use -check_port() { - local port=$1 - if lsof -i :$port &>/dev/null; then - return 0 # Port is in use - else - return 1 # Port is free - fi -} - echo -e "${BLUE}╔════════════════════════════════════════╗${NC}" echo -e "${BLUE}║ Building Podman Image ║${NC}" echo -e "${BLUE}╚════════════════════════════════════════╝${NC}" @@ -159,14 +149,7 @@ if [ "$RUN_CONTAINER" = true ]; then echo -e "${BLUE}║ Starting Container ║${NC}" echo -e "${BLUE}╚════════════════════════════════════════╝${NC}" - # Check if host port is in use - if check_port "$HOST_PORT"; then - echo -e "${RED}✗ Port $HOST_PORT is already in use${NC}" - echo -e "${YELLOW}Use a different port: $0 -t $IMAGE_TAG --run -p ${NC}" - exit 1 - fi - - # Cleanup existing container + # Cleanup existing container FIRST (before checking port) if ! cleanup_container "$CONTAINER_NAME"; then echo -e "${RED}✗ Failed to clean up existing container${NC}" exit 1