From 1e3dcaee3cf5b9f31e1e4510ab621629e249c434 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 4 Aug 2016 20:06:08 +0200 Subject: [PATCH] logf: reduce redundant syntax --- krebs/5pkgs/logf/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/krebs/5pkgs/logf/default.nix b/krebs/5pkgs/logf/default.nix index 246e4d954..54b8a1877 100644 --- a/krebs/5pkgs/logf/default.nix +++ b/krebs/5pkgs/logf/default.nix @@ -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 \