When attempting to copy a statically linked interpreter, the script intends to create the target folder mkdir -p. However, the target created is the basename, not the dirname of the target path of the interpreter. This will likely still function if the target directory happens to exist (e.g. rootfs/usr/bin), but may also create a nonsense folder in the working path. In the line below, basename should be replaced with dirname.
When attempting to copy a statically linked interpreter, the script intends to create the target folder mkdir -p. However, the target created is the basename, not the dirname of the target path of the interpreter. This will likely still function if the target directory happens to exist (e.g. rootfs/usr/bin), but may also create a nonsense folder in the working path. In the line below, basename should be replaced with dirname.
mkdir -p "$(basename "$cache/partial-$release-$arch/$interpreter_path")"