From 4ff31603405582023916545cbc9103e362d22463 Mon Sep 17 00:00:00 2001 From: Luca Di Maio Date: Sat, 16 Sep 2023 10:43:57 +0200 Subject: [PATCH] generate-entry: fix missing cp commands Signed-off-by: Luca Di Maio --- distrobox-generate-entry | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/distrobox-generate-entry b/distrobox-generate-entry index b49a73c958..0bf0c432f8 100755 --- a/distrobox-generate-entry +++ b/distrobox-generate-entry @@ -195,25 +195,33 @@ case "${container_manager}" in autodetect) if command -v podman > /dev/null; then container_manager="podman" + container_manager_cp_command="podman cp" elif command -v podman-launcher > /dev/null; then container_manager="podman-launcher" + container_manager_cp_command="podman-launcher cp" elif command -v docker > /dev/null; then container_manager="docker" + container_manager_cp_command="docker cp -L" elif command -v lilipod > /dev/null; then container_manager="lilipod" + container_manager_cp_command="lilipod cp" fi ;; podman) - container_manager="podman" + container_manager="podman" + container_manager_cp_command="podman cp" ;; podman-launcher) - container_manager="podman-launcher" + container_manager="podman-launcher" + container_manager_cp_command="podman-launcher cp" ;; lilipod) - container_manager="lilipod" + container_manager="lilipod" + container_manager_cp_command="lilipod cp" ;; docker) - container_manager="docker" + container_manager="docker" + container_manager_cp_command="docker cp -L" ;; *) printf >&2 "Invalid input %s.\n" "${container_manager}"