container-build: Use `bash` for `ExecCondition`
Since `sh` may point to a POSIX shell, and brace expansion is undefined there.
This commit is contained in:
parent
005f4c33d5
commit
2a8d56e17e
|
@ -8,7 +8,7 @@ ConditionPathExists=%E/coreos-home-server/%i/Containerfile
|
|||
Type=oneshot
|
||||
SyslogIdentifier=%N
|
||||
Environment=PODMAN_BUILD_OPTIONS=
|
||||
ExecCondition=/bin/sh -c 'test -z "$(podman image list --quiet --filter until!="$(find %E/coreos-home-server/%i/{Containerfile,container} -type f -printf "%%T@\n" | sort -n | tail -1)" --filter reference=localhost/%i)"; exit $?'
|
||||
ExecCondition=/bin/bash -c 'test -z "$(podman image list --quiet --filter until!="$(find %E/coreos-home-server/%i/{Containerfile,container} -type f -printf "%%T@\n" | sort -n | tail -1)" --filter reference=localhost/%i)"; exit $?'
|
||||
ExecStartPre=-/bin/podman image tag localhost/%i:latest localhost/%i:previous
|
||||
ExecStart=/bin/podman build $PODMAN_BUILD_OPTIONS --file %E/coreos-home-server/%i/Containerfile --tag localhost/%i:latest %E/coreos-home-server/%i
|
||||
|
||||
|
|
Loading…
Reference in New Issue