mirror of
https://github.com/lxc/lxc-templates.git
synced 2025-01-24 21:20:10 +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:
parent
da7b8e8bf3
commit
70ae901bdd
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user