Browse Source

bugfixes to pdm-launch

feature/startup-from-labels
Mario Alegre 5 years ago
parent
commit
21edecae22
  1. 4
      bin/pdm-launch

4
bin/pdm-launch

@ -37,7 +37,7 @@ else
name=$image
fi
if [[ $FLAGS_config == $FLAGS_TRUE ]]; then
if [[ $FLAGS_config -eq $FLAGS_TRUE ]]; then
echo "Getting deploy options from image metadata label \"$FLAGS_label\" ..."
deployopts=$(podman image inspect -f "{{ .Config.Labels.${FLAGS_label} }}" $image)
if [[ $deployopts == "<no value>" ]]; then
@ -48,7 +48,7 @@ else
deployopts=""
fi
if [[ $FLAGS_overwrite ]]; then
if [[ $FLAGS_overwrite -eq $FLAGS_TRUE ]]; then
podman rm -i -f $name
fi

Loading…
Cancel
Save