We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3814e51 commit a39354fCopy full SHA for a39354f
misc/tools.func
@@ -783,9 +783,13 @@ fetch_and_deploy_gh_release() {
783
local content_root
784
content_root=$(find "$tmpdir" -mindepth 1 -maxdepth 1 -type d)
785
if [[ $(echo "$content_root" | wc -l) -eq 1 ]]; then
786
+ shopt -s dotglob nullglob
787
cp -r "$content_root"/* "/opt/$app/"
788
+ shopt -u dotglob nullglob
789
else
790
791
cp -r "$tmpdir"/* "/opt/$app/"
792
793
fi
794
echo "$version" >"/opt/${app}_version.txt"
795
$STD msg_ok "Deployed $app v$version to /opt/$app"
0 commit comments