From e2abf4f20408e6db5747336ff112e1526d3ed4f9 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 8 Jul 2025 09:10:10 +0200 Subject: [PATCH] fix chmod --- misc/tools.func | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/tools.func b/misc/tools.func index eb335a79..7957760b 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -997,7 +997,9 @@ function fetch_and_deploy_gh_release() { return 1 } - chmod +x "$target/$app" + if [[ "$chmod_target" != *.jar && -f "$target/$chmod_target" ]]; then + chmod +x "$target/$chmod_target" + fi else msg_error "Unknown mode: $mode"