Skip to content

Commit ecc55fa

Browse files
committed
fix: Drop the quiet from the podman system connection list cmd
The quiet option only available from podman 4.3. Instead just drop the header line and count the connections manually. This way we would still be able to see any other errors. resolves #637
1 parent f5f3d01 commit ecc55fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pattern-util.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ fi
6262

6363
# Detect if we use podman machine. If we do not then we bind mount local host ssl folders
6464
# if we are using podman machine then we do not bind mount anything (for now!)
65-
REMOTE_PODMAN=$(podman system connection list -q | wc -l)
65+
REMOTE_PODMAN=$(podman system connection list | tail -n +2 | wc -l)
6666
if [ $REMOTE_PODMAN -eq 0 ]; then # If we are not using podman machine we check the hosts folders
6767
# We check /etc/pki/tls because on ubuntu /etc/pki/fwupd sometimes
6868
# exists but not /etc/pki/tls and we do not want to bind mount in such a case

0 commit comments

Comments
 (0)