Some syntax fixes
This commit is contained in:
parent
ec6659d6e8
commit
04670e3236
|
@ -10,8 +10,8 @@ _get_pixel_color(){
|
||||||
x=$1;
|
x=$1;
|
||||||
y=$2;
|
y=$2;
|
||||||
output_path="/tmp/$(mktemp -u XXXXXX).png"
|
output_path="/tmp/$(mktemp -u XXXXXX).png"
|
||||||
scrot $output_path
|
scrot "$output_path"
|
||||||
magick $output_path -format "%[hex:p{$x,$y}]" info:
|
magick "$output_path" -format "%[hex:p{$x,$y}]" info:
|
||||||
END=$(timestamp)
|
END=$(timestamp)
|
||||||
DIFF=$(echo "$END - $START" | bc)
|
DIFF=$(echo "$END - $START" | bc)
|
||||||
echo "{\"getting_pixel_color_took\": \"${DIFF}ms\"}" > /dev/stderr
|
echo "{\"getting_pixel_color_took\": \"${DIFF}ms\"}" > /dev/stderr
|
||||||
|
|
Loading…
Reference in New Issue
Block a user