format fix
This commit is contained in:
@@ -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}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user