paritybit.ca

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 335c4ffdf64418c86fdeb5526132cf6890a5f880
parent 13b2b8765c05497054f5f7c27f574d5319d8aac4
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sun, 27 Sep 2020 13:35:53 -0400

Clean up uploading if statement

Diffstat:
Mhttp/compile | 5+----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/http/compile b/http/compile @@ -105,10 +105,7 @@ auto_upload() fi print_info_msg "Auto-uploading file" if [ "$autoUpload" = "true" ]; then - if [ "$fileExt" = "css" ]; then - outputFile="$(echo "$outputFile" | cut -d'/' -f2-)" - cd public && rsync -rR "$outputFile" "$remote" && cd .. - elif [ "$fileExt" = "md" ]; then + if [ "$fileExt" = "css" ] || [ "$fileExt" = "md" ]; then outputFile="$(echo "$outputFile" | cut -d'/' -f2-)" cd public && rsync -rR "$outputFile" "$remote" && cd .. fi