1
0
mirror of https://github.com/lxc/lxc-templates.git synced 2025-01-27 14:20:09 +00:00

lxc-kali: Fix incorrect use of basename instead of dirname

cf. ae96852bbb

Signed-off-by: Arnaud Rebillout <arnaudr@kali.org>
This commit is contained in:
Arnaud Rebillout 2022-10-18 10:25:18 +07:00
parent da7b8e8bf3
commit 70ae901bdd

View File

@ -394,7 +394,7 @@ apt-transport-https
echo "Failed to download the rootfs, aborting." echo "Failed to download the rootfs, aborting."
return 1 return 1
fi 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" cp "$interpreter" "$cache/partial-$release-$arch/$interpreter_path"
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
echo "failed to copy $interpreter to $cache/partial-$release-$arch/$interpreter_path" echo "failed to copy $interpreter to $cache/partial-$release-$arch/$interpreter_path"