Some syntax fixes
This commit is contained in:
parent
ec6659d6e8
commit
04670e3236
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user