Added flag to build.sh
This commit is contained in:
parent
f891299162
commit
73c476fcb4
11
build.sh
11
build.sh
|
@ -5,7 +5,7 @@ HOST="https://github.com/"
|
||||||
quote=true # True injects a qoute in hex
|
quote=true # True injects a qoute in hex
|
||||||
|
|
||||||
# Find a (WIP) qoute and transform to hex, replaceing newlines with \n
|
# Find a (WIP) qoute and transform to hex, replaceing newlines with \n
|
||||||
quote ()
|
quote()
|
||||||
{
|
{
|
||||||
if "$quote"
|
if "$quote"
|
||||||
then
|
then
|
||||||
|
@ -15,7 +15,7 @@ quote ()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
conv () {
|
conv() {
|
||||||
# Take a file and convert it to html by making substitutes.
|
# Take a file and convert it to html by making substitutes.
|
||||||
|
|
||||||
# ^/name -> https://github.com/name
|
# ^/name -> https://github.com/name
|
||||||
|
@ -40,8 +40,8 @@ conv () {
|
||||||
sed 's/%%HEADER%%/'"$header"'/g'
|
sed 's/%%HEADER%%/'"$header"'/g'
|
||||||
}
|
}
|
||||||
|
|
||||||
main () {
|
main() {
|
||||||
while getopts "dqw" opt
|
while getopts "dqwp" opt
|
||||||
do
|
do
|
||||||
case $opt in
|
case $opt in
|
||||||
d)
|
d)
|
||||||
|
@ -50,6 +50,9 @@ main () {
|
||||||
q)
|
q)
|
||||||
quote=false
|
quote=false
|
||||||
;;
|
;;
|
||||||
|
p)
|
||||||
|
git pull # Pull before building, potentially highly scuffed lmao
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
exit 2
|
exit 2
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue