l klem module: reference grep directly

This commit is contained in:
lassulus 2021-10-24 13:24:04 +02:00
parent a1855823de
commit 60fe1fed15

View File

@ -38,7 +38,7 @@ in {
# match filetype against patterns
${concatMapStringsSep "\n" (script: ''
${pkgs.xclip}/bin/xclip -selection clipboard -target TARGETS -out \
| grep -q '${script.target}'
| ${pkgs.gnugrep}/bin/grep -q '${script.target}'
if [ $? -eq 0 ]; then
labels="$labels:${script.label}"
fi