logf: reduce redundant syntax

This commit is contained in:
tv 2016-08-04 20:06:08 +02:00
parent ff42f5198f
commit 1e3dcaee3c

View File

@ -23,9 +23,9 @@ pkgs.writeDashBin "logf" ''
LOGF_PRIO_COLORS=$(cat "''${LOGF_PRIO_COLORS-${default-prio-colors}}")
printf '%s\0' "$@" \
| ${pkgs.findutils}/bin/xargs -0 -P 0 -n 1 ${pkgs.writeDash "logf-remote" ''
target=$1 \
target_host=$(echo "$1" | sed 's/^.*@//;s/\..*//') \
exec 3>&1;
target=$1
target_host=$(echo "$1" | sed 's/^.*@//;s/\..*//')
exec 3>&1
2>&1 1>&3 ssh "$target" -T \
-o PreferredAuthentications=publickey \
-o StrictHostKeyChecking=yes \