Some syntax fixes

This commit is contained in:
Kuba Orlik 2022-07-08 15:13:24 +02:00
parent ec6659d6e8
commit 04670e3236

View File

@ -10,8 +10,8 @@ _get_pixel_color(){
x=$1;
y=$2;
output_path="/tmp/$(mktemp -u XXXXXX).png"
scrot $output_path
magick $output_path -format "%[hex:p{$x,$y}]" info:
scrot "$output_path"
magick "$output_path" -format "%[hex:p{$x,$y}]" info:
END=$(timestamp)
DIFF=$(echo "$END - $START" | bc)
echo "{\"getting_pixel_color_took\": \"${DIFF}ms\"}" > /dev/stderr