Skip to content

Commit

Permalink
Attempting to fix gh-pages output problems. (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
robons committed Oct 25, 2022
1 parent 548095d commit b73d40d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions publish-csvws-to-github-pages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ git stash pop || true
repo_name=${GITHUB_REPOSITORY#*/}
username=${GITHUB_REPOSITORY_OWNER}
commit_id=${GITHUB_SHA}
mapfile -t out_files < <(printf '%s\n' $(find . -type f -path 'out/*'))
processed_out_files=$(printf "\n%s" "${out_files[@]}")
mapfile -t out_files < <(printf '%s\n' $(find out -type f -name '*'))
processed_out_files=$(printf "|||%s" "${out_files[@]}")

touch .nojekyll
touch index.html
Expand All @@ -38,7 +38,7 @@ cat > index.html <<EOL
<div id="files-container"></div>
<script type="text/javascript">
var html_str = "<ul>";
var files = "${processed_out_files}".split('\n');
var files = "${processed_out_files}".split('|||');
files.shift()
files.sort()
files.forEach(function(file) {
Expand Down

0 comments on commit b73d40d

Please sign in to comment.