Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
SaswatPadhi committed Jan 17, 2025
1 parent 0527faa commit a05cabb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion _scripts/create-network.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

set -Eumo pipefail

SELF_DIR="$(cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)"
source "$SELF_DIR/colors.sh"

NAME=$1

RUNNER_CMD="${RUNNER_CMD:-}"
Expand All @@ -25,6 +28,6 @@ if [ "${RUNNER_CMD}" = "${DOCKER_CMD}" ] ; then
fi

if ! $RUNNER_CMD network inspect $NAME &> /dev/null; then
echo -n "[~] Creating external $RUNNER_CMD network: "
echo -n "[~] Creating external $RUNNER_CMD network '${_bold_}$NAME${_normal_}': "
$RUNNER_CMD network create $NETWORK_FLAGS $NAME
fi

0 comments on commit a05cabb

Please sign in to comment.