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:31:36 +07:00
parent da7b8e8bf3
commit 70ae901bdd
+1 -1
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"