Skip to content
This repository has been archived by the owner on Sep 1, 2022. It is now read-only.

Commit

Permalink
Testnet: (#703) use boolean vars for cleanup and image build
Browse files Browse the repository at this point in the history
  • Loading branch information
MoroccanMalinois committed Sep 8, 2017
1 parent 2e9341b commit 446d43d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contrib/docker/testnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Prepare()

# Cleanup for new testnet
if [[ $KOVRI_WORKSPACE || $KOVRI_NETWORK ]]; then
read_input "Kovri testnet environment detected. Attempt to destroy previous testnet?" NULL cleanup_testnet
read_bool_input "Kovri testnet environment detected. Attempt to destroy previous testnet?" KOVRI_CLEANUP cleanup_testnet
fi

# Set environment
Expand Down Expand Up @@ -152,7 +152,7 @@ set_image()

local _dockerfile_path="${KOVRI_REPO}/contrib/docker/${KOVRI_DOCKERFILE}"

read_input "Build Kovri Docker image? [$KOVRI_IMAGE]" NULL "docker build -t $KOVRI_IMAGE -f $_dockerfile_path $KOVRI_REPO"
read_bool_input "Build Kovri Docker image? [$KOVRI_IMAGE]" KOVRI_BUILD_IMAGE "docker build -t $KOVRI_IMAGE -f $_dockerfile_path $KOVRI_REPO"
popd
}

Expand Down

0 comments on commit 446d43d

Please sign in to comment.