From b75244c8a9dea33322300e448a3d98aab0f31352 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Sat, 27 Jul 2024 23:02:36 +0300 Subject: [PATCH] --- install.sh | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/install.sh b/install.sh index 3ede160..7150695 100644 --- a/install.sh +++ b/install.sh @@ -44,22 +44,22 @@ function main() { [[ ! -e "target/release/dybuk" || ! -e "target/release/deps" ]] case "$?" in - 0) - _install - ;; + 0) + _install + ;; - 1) - log_e "Generated files doesn't exists." - if [ "$EUID" = "0" ]; then - log_e "Building the project with root privileges is prohibited." - return 1 - fi + 1) + log_e "Generated files doesn't exists." + if [ "$EUID" = "0" ]; then + log_e "Building the project with root privileges is prohibited." + return 1 + fi - if ask_yesno "Build project"; then - build && _install - return "$?" - fi - ;; + if ask_yesno "Build project"; then + build && _install + return "$?" + fi + ;; esac }