Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ source build.conf

show_docker_image ()
{
NAME=$1
NAME_PARTS=(${NAME//:/ })
local NAME=$1
local NAME_PARTS=(${NAME//:/ })

# Set 'latest' tag if no tag requested
if [ ${#NAME_PARTS[@]} == 1 ]; then
Expand Down
6 changes: 3 additions & 3 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi

have_docker_container_name ()
{
NAME=$1
local NAME=$1

if [[ -n $(docker ps -a | awk -v pattern="^${NAME}$" '$NF ~ pattern { print $NF; }') ]]; then
return 0
Expand All @@ -30,7 +30,7 @@ have_docker_container_name ()

is_docker_container_name_running ()
{
NAME=$1
local NAME=$1

if [[ -n $(docker ps | awk -v pattern="^${NAME}$" '$NF ~ pattern { print $NF; }') ]]; then
return 0
Expand All @@ -41,7 +41,7 @@ is_docker_container_name_running ()

remove_docker_container_name ()
{
NAME=$1
local NAME=$1

if have_docker_container_name ${NAME} ; then
if is_docker_container_name_running ${NAME} ; then
Expand Down