diff --git a/script/build-brew-cask.sh b/script/build-brew-cask.sh index fd883d62..a357d983 100755 --- a/script/build-brew-cask.sh +++ b/script/build-brew-cask.sh @@ -52,7 +52,8 @@ fi manpages=$(unzip -l "$zip_file" | \ grep --only-matching 'manpage/aerospace.*' | \ - while read -r it; do echo " manpage \"$zip_root_dir/$it\""; done) + while read -r it; do echo " manpage \"$zip_root_dir/$it\""; done | \ + sort) rm -f ".release/$cask_name.rb" || true mkdir -p .release diff --git a/script/publish-release.sh b/script/publish-release.sh index 7f53b272..77b22c99 100755 --- a/script/publish-release.sh +++ b/script/publish-release.sh @@ -47,7 +47,7 @@ read -r --build-version "$build_version" eval "$cask_git_repo_path/pin.sh" -cp .release/aerospace.rb "$cask_git_repo_path/Casks/aerospace.rb" +cp -r .release/aerospace.rb "$cask_git_repo_path/Casks/aerospace.rb" rm -rf "${site_git_repo_path:?}/*" # https://www.shellcheck.net/wiki/SC2115 -cp .site/* "$site_git_repo_path" +cp -r .site/* "$site_git_repo_path"