From 69ccc3a32a3af9e0a1e1ed8c6cf4bb1b0db6ad63 Mon Sep 17 00:00:00 2001 From: stonifam Date: Thu, 2 Jul 2026 00:39:05 +0400 Subject: [PATCH] format fix --- install.sh | 3 ++- launcher.sh | 9 ++++----- update.sh | 7 ++++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/install.sh b/install.sh index 4fbf0f7..a36c5e9 100755 --- a/install.sh +++ b/install.sh @@ -92,7 +92,8 @@ install_edition() { tar -xzf "$tmp_archive" -C "${INSTALL_DIR}/${edition}" rm -f "$tmp_archive" - local run_path="${INSTALL_DIR}/${edition}/linusware/run.sh" + local run_path="${INSTALL_DIR}/${edition}/run.sh" + [ -f "$run_path" ] || error "run.sh not found after extraction" chmod +x "$run_path" echo "$version" > "${INSTALL_DIR}/${edition}/version.txt" diff --git a/launcher.sh b/launcher.sh index 268dc12..96770a0 100755 --- a/launcher.sh +++ b/launcher.sh @@ -10,11 +10,10 @@ declare -a editions edition_names for dir in "${INSTALL_DIR}"/*/; do [ -d "$dir" ] || continue edition=$(basename "$dir") - run="${dir}/linusware/run.sh" - if [ -f "$run" ] && [ -x "$run" ]; then - edition_names+=("$edition") - editions+=("$run") - fi + run="${dir}/run.sh" + [ -f "$run" ] && [ -x "$run" ] || continue + edition_names+=("$edition") + editions+=("$run") done if [ ${#editions[@]} -eq 0 ]; then diff --git a/update.sh b/update.sh index f5e1fbe..2ecf391 100755 --- a/update.sh +++ b/update.sh @@ -32,7 +32,7 @@ download() { update_edition() { local edition="$1" - local run_path="${INSTALL_DIR}/${edition}/linusware/run.sh" + local run_path="${INSTALL_DIR}/${edition}/run.sh" local ver_file="${INSTALL_DIR}/${edition}/version.txt" [ -f "$run_path" ] || return 0 @@ -92,8 +92,9 @@ update_edition() { tar -xzf "$tmp_archive" -C "${INSTALL_DIR}/${edition}" rm -f "$tmp_archive" - local new_run="${INSTALL_DIR}/${edition}/linusware/run.sh" - chmod +x "$new_run" + local run_path="${INSTALL_DIR}/${edition}/run.sh" + [ -f "$run_path" ] || error "run.sh not found after extraction" + chmod +x "$run_path" echo "$remote_ver" > "$ver_file" info "${edition}: updated to v${remote_ver}" }