Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
eq19 authored Aug 16, 2023
1 parent 156df70 commit 5d77746
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _plugins/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ jekyll_build() {
sed -i "1s|^|id: $(( $3 + 31 ))\n|" /maps/_config.yml && gist.sh $1 ${OWNER} $3 &>/dev/null && cat /maps/_config.yml

echo -e "\n$hr\nWORKSPACE\n$hr"
cd /tmp/workdir && cp -R /tmp/gistdir/* . && cp -R /maps/_* .
NR=$(cat /tmp/gist_files | awk "NR==$(( $3 + 2 ))")
cd /tmp/workdir && cp -R /tmp/gistdir/* . && cp -R /maps/_* .
[[ $1 != "eq19.github.io" ]] && wget -O README.md ${NR} &>/dev/null
find /tmp/workdir -type f -name "*.md" -exec sed -i 's/💎:/sort:/g' {} +
if [[ $1 == *"github.io"* ]]; then mv /map/_assets assets; fi && ls -al /tmp/workdir
if [[ $1 == *"github.io"* ]]; then mv _assets assets; fi && ls -al /tmp/workdir

echo -e "\n$hr\nBUILD\n$hr"
# Jekyll Quick Reference (Cheat Sheet) https://gist.github.com/DrOctogon/bfb6e392aa5654c63d12
Expand Down

0 comments on commit 5d77746

Please sign in to comment.