File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
.github/actions/setup-podman Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ runs:
3737 ARCHIVE_NAME="podman-linux-$(dpkg --print-architecture)"
3838
3939 cd /tmp
40- curl -L https://github.com/mgoltzsche/podman-static/releases/download/v5.6.1/${ARCHIVE_NAME}.tar.gz \
40+ curl -L " https://github.com/mgoltzsche/podman-static/releases/download/v5.6.1/${ARCHIVE_NAME}.tar.gz" \
4141 | tar -xz
42- sudo rsync -av ${ARCHIVE_NAME}/etc/ /etc
43- sudo rsync -av ${ARCHIVE_NAME}/usr/ /usr
42+ sudo rsync -av " ${ARCHIVE_NAME}/etc/" /etc
43+ sudo rsync -av " ${ARCHIVE_NAME}/usr/" /usr
4444
4545 sudo podman version
4646
@@ -51,14 +51,15 @@ runs:
5151
5252 export TIMEOUT=$(($(date +%s) + 30)) # 30 seconds in the future
5353 function await() {
54+ exit_code=0
5455 while :; do
5556 if (( $(date +%s) >= $TIMEOUT )); then
5657 echo "timeout reached" >&2
5758 return 1
5859 fi
5960
60- "$@"
61- if [[ %? == 0 ]]; then
61+ "$@" || exit_code=$?
62+ if [[ $exit_code == 0 ]]; then
6263 break
6364 fi
6465
You can’t perform that action at this time.
0 commit comments