If INSTALL_PATH is not a valid directory, create it, like what modules_install and dtbs_install will do in the same situation.
Unified · Split
| @@ -20,6 +20,10 @@ do · 19 unmodified lines | |||
| 20 | fi | 20 | fi |
| 21 | done | 21 | done |
| 22 | 22 | ||
| 23 | if [ -n "${INSTALL_PATH}" ] && ! [ -e "${INSTALL_PATH}" ]; then | ||
| 24 | mkdir -p "${INSTALL_PATH}" | ||
| 25 | fi | ||
| 26 | |||
| 23 | # User/arch may have a custom install script | 27 | # User/arch may have a custom install script |
| 24 | for file in "${HOME}/bin/${INSTALLKERNEL}" \ | 28 | for file in "${HOME}/bin/${INSTALLKERNEL}" \ |
| 25 | "/sbin/${INSTALLKERNEL}" \ | 29 | "/sbin/${INSTALLKERNEL}" \ |