From 915413b54a12f13f099422b06d30aed78b089d98 Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Tue, 13 Aug 2024 08:31:02 +0200 Subject: Update barf and styling --- barf | 61 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 57 insertions(+), 4 deletions(-) (limited to 'barf') diff --git a/barf b/barf index 81bbcd2..49d3f38 100755 --- a/barf +++ b/barf @@ -1,4 +1,19 @@ #!/bin/sh + +domain="https://arena.adast.dk" + +# Check the operating system +os_name=$(uname -s) + +if [ "$os_name" = "OpenBSD" ]; then + alias sed=gsed + alias date=gdate + alias rsync=openrsync +elif [ "$os_name" = "Darwin" ]; then + alias sed=gsed + alias date=gdate +fi + set -eu MARKDOWN=smu IFS=' ' @@ -20,13 +35,13 @@ index_html() { # Intro text $MARKDOWN index.md - echo "