#!/bin/bash # Navigate to the custombuild directory cd /usr/local/directadmin/custombuild || { echo "Failed to change directory to /usr/local/directadmin/custombuild" exit 1 } # Check if the first argument is "build" if [ "$1" == "build" ]; then # Execute the build script with passed arguments, skipping the first argument which is "build" shift ./build "$@" else # Execute the build script with the provided arguments ./build "$@" fi