fix: Correct issue where bazzite-arch updater fails if you're using a bazzite-arch image at a non-default name

This commit is contained in:
Kyle Gospodnetich 2023-09-27 15:47:13 -07:00
parent af5e1fbe37
commit 3621027fdf

View File

@ -1,6 +1,6 @@
#!/usr/bin/bash
if [[ $(distrobox list | grep bazzite-arch) ]]; then
if [[ $(podman ps -a --no-trunc --format {{.Names}} | grep -E '(^|\s)bazzite-arch($|\s)') ]]; then
/usr/bin/distrobox-enter -n bazzite-arch -- ' paru -Sua --noconfirm'
else
echo "Update skipped: bazzite-arch not installed"