From 70ae901bddfbf53c6d6f913f74edb6887a076697 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Tue, 18 Oct 2022 10:25:18 +0700 Subject: [PATCH] lxc-kali: Fix incorrect use of basename instead of dirname cf. ae96852bbbf8bf4673a14085acfd6c0a74c48e37 Signed-off-by: Arnaud Rebillout --- templates/lxc-kali.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-kali.in b/templates/lxc-kali.in index e467988..3439a58 100644 --- a/templates/lxc-kali.in +++ b/templates/lxc-kali.in @@ -394,7 +394,7 @@ apt-transport-https echo "Failed to download the rootfs, aborting." return 1 fi - mkdir -p "$(basename "$cache/partial-$release-$arch/$interpreter_path")" + mkdir -p "$(dirname "$cache/partial-$release-$arch/$interpreter_path")" cp "$interpreter" "$cache/partial-$release-$arch/$interpreter_path" if [ $? -ne 0 ]; then echo "failed to copy $interpreter to $cache/partial-$release-$arch/$interpreter_path"