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