diff options
author | Sergey Shatunov | 2020-02-06 21:45:32 +0800 |
---|---|---|
committer | Sergey Shatunov | 2020-02-06 21:45:32 +0800 |
commit | be084bbfa93fc4f233714a131eacc6ce39b1a4e2 (patch) | |
tree | 7f2c4bada12749828da8a716706474f00d536b30 /uak | |
parent | 08e9e39c1ad4856f603719dd5791d0973f58e154 (diff) | |
download | aur-unifed-arch-kernel.tar.gz |
commit
Diffstat (limited to 'uak')
-rwxr-xr-x | uak | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -102,13 +102,13 @@ case "$COMMAND" in if [[ ! $KERNEL_VERSION ]] || [[ ! "$KERNEL_IMAGE" ]]; then die 1 "Not enough arguments" fi - + if [[ ! -f "$KERNEL_IMAGE" ]]; then die 2 "Kernel image '${KERNEL_IMAGE}' not a file" fi - + shift 3 - + EFISTUB_IMAGE=$(mktemp) EFISTUB_INSTALL_PATH="$UAK_ESP_TARGET/$ID-$KERNEL_VERSION.efi" ;; @@ -116,13 +116,13 @@ case "$COMMAND" in check_root KERNEL_VERSION="$2" - + if [[ ! $KERNEL_VERSION ]]; then die 1 "Not enough arguments" fi shift 2 - + EFISTUB_INSTALL_PATH="$UAK_ESP_TARGET/$ID-$KERNEL_VERSION.efi" ;; regenerate) @@ -151,7 +151,7 @@ for plugin in "${PLUGINS[@]}"; do done -if [[ "$COMMAND" == "add" ]]; then +if [[ "$COMMAND" == "install" ]]; then if [[ -f "$EFISTUB_IMAGE" ]]; then install -DT "$EFISTUB_IMAGE" "$EFISTUB_INSTALL_PATH" || warning "Unable to install image at $EFISTUB_INSTALL_PATH" else |