depsterr.com

The sources and build system for depsterr.com
git clone git://depsterr.com/git/depsterr.com
Log | Files | Refs | LICENSE

commit a398dba3ff63702f28605187d5092939ed57d4bd
parent 414dad1dd06e2b5f53fdf4b5fa4cbf826d2c4602
Author: depsterr <depsterr@protonmail.com>
Date:   Fri, 26 Jun 2020 00:03:58 +0200

got tools ready for deployment

Diffstat:
Mgit_page.sh | 13++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/git_page.sh b/git_page.sh @@ -20,16 +20,18 @@ dirname() { cd "$(dirname "$0")" || exit 1 -echo $0 | grep -q '*.git' && { +echo "$0" | grep -q '.*\.git' && { echo "cannot use a repo that ends in git" exit 1 } +#shellcheck disable=2016 [ -z "$1" ] && { echo '$1 is empty' exit 1 } +#shellcheck disable=2016 [ -z "$1" ] && { echo '$2 is empty' exit 1 @@ -50,7 +52,7 @@ mkdir -p "$REPODIR" cat > "$REPODIR/style.css" <<-EOF body{background:#2e2e2e;} *{font-family: monospace;} -h1{font-size:2.5em;color:#e88be0;!important} +h1{color:#e88be0;!important} hr{border-color:#1DDBC9;} p,tr,td{color:#f5f5f5;} a,a:link,a:visited,a:active{color:#1ddbc9;} @@ -59,14 +61,14 @@ EOF [ -f "$DESTDIR/style.css" ] || cat > "$DESTDIR/style.css" <<-EOF body{background:#2e2e2e;} *{font-family: monospace;} -.desc{font-size:2.5em;color:#e88be0;!important} +.desc{color:#e88be0;!important} hr{border-color:#1DDBC9;} p,tr,td{color:#f5f5f5;} a,a:link,a:visited,a:active{color: #1ddbc9;} a:hover{color:#f7bf65;} EOF - +[ -f "$2" ] || touch "$2" in=false while read -r line; do [ "$line" = "$1" ] && { @@ -74,6 +76,7 @@ while read -r line; do break } done < "$2" -[ "$in" = true ] && echo "$1" >> "$2" +[ "$in" = true ] || echo "$1" >> "$2" +# shellcheck disable=2046 stagit-index $(cat "$2") > "$DESTDIR/index.html"