lxc-debian: fix incorrect use of basename instead of dirname

mkdir -p should create the dirname of the interpreter, not its basename.

Signed-off-by: Anders Oleson <anders-code@users.noreply.github.com>
This commit is contained in:
Anders
2020-02-09 22:29:08 -08:00
committed by GitHub
parent 0e20f5db0f
commit ae96852bbb
+1 -1
View File
@@ -385,7 +385,7 @@ openssh-server
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"