paritybit.ca

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

commit 03d18c10978e4d15e4e6dcf5acef3cdaf00fb5e6
parent d1dcd36f7275ca0cebf4eae8a1b5608fddd8bd80
Author: Jake Bauer <jbauer@paritybit.ca>
Date:   Sat,  8 Aug 2020 21:21:55 -0400

Remove \r characters from image URL causing curl to fail

Diffstat:
Mcompile | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compile b/compile @@ -124,7 +124,7 @@ optimize_img() --user api:"$apiKey" \ --data-binary @"$file" \ --dump-header /dev/stdout) - downloadURL=$(echo "$response" | grep location: | cut -d' ' -f2) + downloadURL=$(echo "$response" | grep location: | cut -d' ' -f2 | tr -d '\r') if [ $? != 0 ]; then print_error_msg "There was an issue minifying this image." exit 1