diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2019-01-31 20:56:29 +0000 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2019-01-31 20:56:29 +0000 |
commit | 994904ebfe23c376c5d04540cd620587bbd344ab (patch) | |
tree | faf535f60b84db2e1a202aba1a6122b984f352e9 | |
parent | 1946eb17280fe09b0e3ea4cf2b24d3d5979b6d9c (diff) |
add missing install
Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
-rwxr-xr-x | u-boot-recovery.sh | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/u-boot-recovery.sh b/u-boot-recovery.sh index ca4110b..e9aafc3 100755 --- a/u-boot-recovery.sh +++ b/u-boot-recovery.sh @@ -127,6 +127,19 @@ create_out_dir() { [ -d "${OUTPUT}" ] || error_msg "Could not create output directory ${OUTPUT}" } +install() { + dist_name + # shellcheck disable=SC2154 + case "${dist}" in + debian|ubuntu) + install_deps lrzsz libdevice-serialport-perl expect fastboot + ;; + *) + warn_msg "No package installation support on ${dist}" + ;; + esac +} + OUTPUT="$(pwd)/output" RESULT_FILE="${OUTPUT}/result.txt" export RESULT_FILE @@ -149,18 +162,7 @@ done ! check_root && error_msg "You need to be root to run this script." create_out_dir "${OUTPUT}" -install() { - dist_name - # shellcheck disable=SC2154 - case "${dist}" in - debian|ubuntu) - install_deps lrzsz libdevice-serialport-perl expect fastboot - ;; - *) - warn_msg "No package installation support on ${dist}" - ;; - esac -} +install if [ ! -d "${UBOOT_DIR}" ]; then error_fatal "${UBOOT_DIR} doesn't exist" |