From f9a5d4ec7ffa5ee357f6a8bc754ef9b5cbcdbed5 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Fri, 2 Sep 2022 13:28:11 +0200 Subject: [PATCH] Remove useless use of awk --- share/completions/cwebp.fish | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/share/completions/cwebp.fish b/share/completions/cwebp.fish index fec79505d..08de82331 100644 --- a/share/completions/cwebp.fish +++ b/share/completions/cwebp.fish @@ -50,10 +50,6 @@ set -l sharpness_opts ' 7\tleast sharp ' -function __fish_cwebp_pass_opts - seq 0 10 | awk '{printf "%s\t\n", $0}' - -end - set -l alpha_method_opts ' 0\t 1\tdefault @@ -111,7 +107,7 @@ complete -c cwebp -o strong -d 'Use strong filter' complete -c cwebp -o simple -d 'Use simple filter' complete -c cwebp -o sharp_yuv -d 'Use sharper (and slower) RGB->YUV conversion' complete -c cwebp -x -o partition_limit -d 'Limit quality to fit the 512k limit on the first partition (integer 0:no degradation…100:full degradation)' -complete -c cwebp -x -o pass -a '(__fish_cwebp_pass_opts)' -d 'Analysis pass number' +complete -c cwebp -x -o pass -a '(seq 0 10)' -d 'Analysis pass number' complete -c cwebp -x -o crop -d 'Crop picture with rectangle' complete -c cwebp -x -o resize -d 'Resize picture to after any cropping' complete -c cwebp -o mt -d 'Use multi-threading if available'