From a39354f8f32b6a7d193a9573f74f59b447ceb45a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slavi=C5=A1a=20Are=C5=BEina?= <58952836+tremor021@users.noreply.github.com> Date: Tue, 20 May 2025 13:05:02 +0200 Subject: [PATCH] Update fetch_and_deploy function (#4605) --- misc/tools.func | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/tools.func b/misc/tools.func index 5a91033ce..b533ffc31 100644 --- a/misc/tools.func +++ b/misc/tools.func @@ -783,9 +783,13 @@ fetch_and_deploy_gh_release() { local content_root content_root=$(find "$tmpdir" -mindepth 1 -maxdepth 1 -type d) if [[ $(echo "$content_root" | wc -l) -eq 1 ]]; then + shopt -s dotglob nullglob cp -r "$content_root"/* "/opt/$app/" + shopt -u dotglob nullglob else + shopt -s dotglob nullglob cp -r "$tmpdir"/* "/opt/$app/" + shopt -u dotglob nullglob fi echo "$version" >"/opt/${app}_version.txt" $STD msg_ok "Deployed $app v$version to /opt/$app"