Mercurial > sat_docs
comparison docker/libervia_cont.sh @ 96:c425b8a99a29
docker (libervia_cont): removed useless echo in get_dyn_var
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 24 Feb 2016 20:29:30 +0100 |
parents | 33f9610480ea |
children | 15e317bb602f |
comparison
equal
deleted
inserted
replaced
95:33f9610480ea | 96:c425b8a99a29 |
---|---|
67 | 67 |
68 name=$1 | 68 name=$1 |
69 var_type=$2 | 69 var_type=$2 |
70 name_upp=$(echo "$name" | tr '[:lower:]' '[:upper:]') | 70 name_upp=$(echo "$name" | tr '[:lower:]' '[:upper:]') |
71 case $var_type in | 71 case $var_type in |
72 ports) eval echo $(echo "\$${name_upp}_PORTS");; | 72 ports) eval echo "\$${name_upp}_PORTS";; |
73 port_name) eval echo $(echo "\$PORT_${name_upp}_NAME");; | 73 port_name) eval echo "\$PORT_${name_upp}_NAME";; |
74 esac | 74 esac |
75 } | 75 } |
76 | 76 |
77 list_ports() { | 77 list_ports() { |
78 # list used ports in currently running containers | 78 # list used ports in currently running containers |