fix: always pull when -p flag is used
This commit is contained in:
4
enter.sh
4
enter.sh
@@ -67,9 +67,9 @@ while test $# -gt 0; do
|
|||||||
shift
|
shift
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$pull" = true ] || [ "$(podman container inspect "$name" -f {{.State.Running}} 2>&1)" != 'true' ]; then
|
if [ "$(podman container inspect "$name" -f {{.State.Running}} 2>&1)" != 'true' ] || [ "$pull" = true ]; then
|
||||||
log "fetching devcontainer updates..."
|
log "fetching devcontainer updates..."
|
||||||
if [ "$pull" = true ] || [ "$(podman container inspect "$name" -f {{.Image}} 2>&1)" != "$(podman pull -q "$registry/$name" 2>&1)" ]; then
|
if [ "$(podman container inspect "$name" -f {{.Image}} 2>&1)" != "$(podman pull -q "$registry/$name" 2>&1)" ] || [ "$pull" = true ]; then
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
log "container image downloaded" '✓' 32
|
log "container image downloaded" '✓' 32
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user