remove unnecessary cat for executing the host script - drist - a remote deployment tool
 (HTM) git clone git://bitreich.org/drist/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/drist/
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 92aca81f5528fe453c8da9dda92c5bf27f706572
 (DIR) parent 31472da6fc412eb26c5ba6f80487be2b332909da
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Sat, 11 Aug 2018 12:21:06 +0200
       
       remove unnecessary cat for executing the host script
       
       Diffstat:
         M drist                               |      11 +++++------
       
       1 file changed, 5 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/drist b/drist
       @@ -34,12 +34,11 @@ remote_script() {
                if [ -f "${1}" ]
                then
                        printf 'Executing script\n'
       -                cat "${1}" | \
       -                        ssh "${2}" 'DRIST=$(mktemp /tmp/drist.XXXXXXXXXXXX) &&
       -                                    cat - > "$DRIST" &&
       -                                    chmod u+x "$DRIST" &&
       -                                    "$DRIST" ;
       -                                    rm "$DRIST"'
       +                ssh "${2}" 'DRIST=$(mktemp /tmp/drist.XXXXXXXXXXXX) &&
       +                    cat - > "$DRIST" &&
       +                    chmod u+x "$DRIST" &&
       +                    "$DRIST" ;
       +                    rm "$DRIST"' < "$1"
                fi
        }