paritybit.ca

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

commit ab796dfb709771ab39e72c5863d634c58a12aa07
parent eb78c56e252781eca8ce926653e009ce8b362daf
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Thu, 20 May 2021 21:00:40 -0400

Update compile to use OpenBSD's basename

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

diff --git a/http/compile b/http/compile @@ -289,9 +289,9 @@ for file in "$@"; do # First run of fileName needed because if the for loop operates on $file, # the extension will not be properly pruned - fileName=$(basename -s .md "$file") + fileName=$(basename "$file" .md) for ext in md css png jpg jpeg; do - fileName=$(basename -s ."$ext" "$fileName") + fileName=$(basename "$fileName" ."$ext" ) done fileExt=$(echo "$file" | awk -F . '{if (NF>1) {print $NF}}') fileDir=$(dirname "$file")