Skip to content

Commit a39354f

Browse files
authored
Update fetch_and_deploy function (#4605)
1 parent 3814e51 commit a39354f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

misc/tools.func

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -783,9 +783,13 @@ fetch_and_deploy_gh_release() {
783783
local content_root
784784
content_root=$(find "$tmpdir" -mindepth 1 -maxdepth 1 -type d)
785785
if [[ $(echo "$content_root" | wc -l) -eq 1 ]]; then
786+
shopt -s dotglob nullglob
786787
cp -r "$content_root"/* "/opt/$app/"
788+
shopt -u dotglob nullglob
787789
else
790+
shopt -s dotglob nullglob
788791
cp -r "$tmpdir"/* "/opt/$app/"
792+
shopt -u dotglob nullglob
789793
fi
790794
echo "$version" >"/opt/${app}_version.txt"
791795
$STD msg_ok "Deployed $app v$version to /opt/$app"

0 commit comments

Comments
 (0)