From 16b2110de47d36da2dcf4da99db6935b332db8cf Mon Sep 17 00:00:00 2001 From: Thek4n Date: Mon, 13 Nov 2023 11:42:56 +0300 Subject: [PATCH] ref(install-script): some refs --- install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install b/install index 33e5859..5a0a8c2 100755 --- a/install +++ b/install @@ -189,21 +189,21 @@ cmd_docker() { } is_target_installed() { - local not_fully_installed=0 + local not_fully_installed=false local targetfile for targetfile in ${TARGETS["$1"]} do if [ "${targetfile::1}" = "%" ]; then - is_target_installed "${targetfile:1}" || not_fully_installed=1 + is_target_installed "${targetfile:1}" || not_fully_installed=true else if [ ! -e "$TARGET_PATH/$targetfile" ]; then echo "$targetfile not linked" - not_fully_installed=1 + not_fully_installed=true fi fi done - if (( not_fully_installed != 0 )); then + if $not_fully_installed; then echo "Target '$1' not fully installed" echo return 1