Merge pull request #27 from anders-code/patch-1

lxc-debian: fix incorrect use of basename instead of dirname
This commit is contained in:
Christian Brauner 2020-02-12 11:57:12 +01:00 committed by GitHub
commit 31e76fe8af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,7 +385,7 @@ openssh-server
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"