From 73c476fcb40c42c895561e72106d5867a5ea8b7a Mon Sep 17 00:00:00 2001 From: Stephen Cochrane Date: Tue, 27 Jul 2021 16:15:32 +0200 Subject: [PATCH] Added flag to build.sh --- build.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/build.sh b/build.sh index 14fa2c3..d1d587d 100755 --- a/build.sh +++ b/build.sh @@ -5,7 +5,7 @@ HOST="https://github.com/" quote=true # True injects a qoute in hex # Find a (WIP) qoute and transform to hex, replaceing newlines with \n -quote () +quote() { if "$quote" then @@ -15,7 +15,7 @@ quote () fi } -conv () { +conv() { # Take a file and convert it to html by making substitutes. # ^/name -> https://github.com/name @@ -40,8 +40,8 @@ conv () { sed 's/%%HEADER%%/'"$header"'/g' } -main () { - while getopts "dqw" opt +main() { + while getopts "dqwp" opt do case $opt in d) @@ -50,6 +50,9 @@ main () { q) quote=false ;; + p) + git pull # Pull before building, potentially highly scuffed lmao + ;; *) exit 2 ;;