mirror of
https://github.com/89luca89/distrobox.git
synced 2025-02-25 18:55:25 -06:00
assemble: fix name detection with hyphens, Fix #1507
Signed-off-by: Luca Di Maio <luca.dimaio1@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user