From d706818265b164bfdafcb47bff166b064265bd39 Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Sat, 12 Oct 2024 11:00:42 +0200 Subject: [PATCH] assemble: fix name detection with hyphens, Fix #1507 Signed-off-by: Luca Di Maio --- distrobox-assemble | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distrobox-assemble b/distrobox-assemble index 23b17b9918..4ddea9805e 100755 --- a/distrobox-assemble +++ b/distrobox-assemble @@ -325,7 +325,7 @@ run_distrobox() # If distrobox already exist, and we have replace enabled, destroy the container # we have to recreate it. # shellcheck disable=SC2086,2248 - if "${distrobox_path}"/distrobox-list ${root_flag} | grep -qw "${name} " && [ "${dryrun}" -eq 0 ]; then + if "${distrobox_path}"/distrobox-list ${root_flag} | grep -qw " ${name} " && [ "${dryrun}" -eq 0 ]; then printf >&2 "%s already exists\n" "${name}" return 0 fi