From: Sergey Matveev Date: Sat, 18 Sep 2021 08:24:56 +0000 (+0300) Subject: Simplify with addcr X-Git-Url: http://www.git.stargrave.org/?p=dotfiles.git;a=commitdiff_plain;h=3eb192bc43985a0d2cf1095a53ea622e6f1f173a;hp=40ea1b600ca4834ddcfc9b945dfb31af7e04a5d6 Simplify with addcr --- diff --git a/bin/bin/gemget b/bin/bin/gemget index 6f5caaf..44024ee 100755 --- a/bin/bin/gemget +++ b/bin/bin/gemget @@ -2,4 +2,4 @@ h=${1#*//} h=${h%%/*} -tcpclient -DHR -l 0 $h 1965 tlsc -name $h -insecure sh -c "printf \"$1\r\n\" >&7 ; delcr <&6" +echo "$1" | tcpclient -DHR -l 0 $h 1965 tlsc -name $h -insecure sh -c "addcr >&7 ; delcr <&6"