Skip to content

Commit

Permalink
make script work on Darwin OS
Browse files Browse the repository at this point in the history
Signed-off-by: Kingdon Barrett <[email protected]>
  • Loading branch information
kingdonb committed Feb 28, 2024
1 parent 872cc8e commit e6b79b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions KUBECON.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
{{< figure src="/img/flux-horizontal-color.png" alt="Flux Logo" >}}
</div>

<div class="float-header-kubecon"># KubeCon Paris 2024

March 19-22, 2024</div>
<div class="float-header-kubecon"><h1>KubeCon Paris 2024</h1><p>March 19-22, 2024</p></div>


<div class="inner-header-right-align">
Expand Down
9 changes: 6 additions & 3 deletions script/update-kubecon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,14 @@
TEMP_FILE=kubecon.html
OUT_FILE=KUBECON.md

# sed=gsed
sed=sed
# head=ghead
head=head

if [[ "$OSTYPE" == "darwin"* ]]; then
sed=gsed
head=ghead
fi

if [[ -z "$DEBUG" ]]; then
wget https://github.com/suntong/html2md/releases/download/${HTML2MD_VER}/${HTML2MD}.tar.gz -O ${HTML2MD}.tar.gz
tar xvf ${HTML2MD}.tar.gz
Expand Down Expand Up @@ -46,7 +49,7 @@ wget ${SOURCE_SITE} -O ${TEMP_FILE} \
<div class="stickers-float-left">\
{{< figure src="/img/flux-cuttlefish-stickers.jpeg" alt="Custom printed stickers with cuttlefish mascot and Flux logos" >}}\
</div></div>_g' \
| $sed -z 's_# KubeCon Paris 2024\n\nMarch 19-22, 2024_<div class="float-header-kubecon"># KubeCon Paris 2024\n\nMarch 19-22, 2024</div>_' \
| $sed -z 's_# KubeCon Paris 2024\n\nMarch 19-22, 2024_<div class="float-header-kubecon"><h1>KubeCon Paris 2024</h1><p>March 19-22, 2024</p></div>_' \
> ${OUT_FILE}

if [[ -z "$DEBUG" ]]; then
Expand Down

0 comments on commit e6b79b2

Please sign in to comment.